From: Jeffrey Altman Date: Mon, 13 Aug 2007 20:20:31 +0000 (+0000) Subject: windows-fs-utils-prototypes-20070813 X-Git-Tag: BP-openafs-windows-kdfs-ifs~557 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b20488de08d230125b3110ec51fe753ef514ddb7;p=packages%2Fo%2Fopenafs.git windows-fs-utils-prototypes-20070813 use ANSI prototypes and function declarations --- diff --git a/src/WINNT/afsd/fs_utils.c b/src/WINNT/afsd/fs_utils.c index f011c3905..c9ac47ffb 100644 --- a/src/WINNT/afsd/fs_utils.c +++ b/src/WINNT/afsd/fs_utils.c @@ -122,9 +122,7 @@ long fs_GetFullPath(char *pathp, char *outPathp, long outSize) } /* is this a digit or a digit-like thing? */ -static int ismeta(ac, abase) -register int abase; -register int ac; { +static int ismeta(int abase, int ac) { /* if (ac == '-' || ac == 'x' || ac == 'X') return 1; */ if (ac >= '0' && ac <= '7') return 1; if (abase <= 8) return 0; @@ -136,17 +134,14 @@ register int ac; { } /* given that this is a digit or a digit-like thing, compute its value */ -static int getmeta(ac) -register int ac; { +static int getmeta(int ac) { if (ac >= '0' && ac <= '9') return ac - '0'; if (ac >= 'a' && ac <= 'f') return ac - 'a' + 10; if (ac >= 'A' && ac <= 'F') return ac - 'A' + 10; return 0; } -long util_GetInt32 (as, aval) -register char *as; -long *aval; +long util_GetInt32 (char *as, long *aval) { register long total; register int tc; diff --git a/src/WINNT/afsd/fs_utils.h b/src/WINNT/afsd/fs_utils.h index dabe1aeb6..dc2c30025 100644 --- a/src/WINNT/afsd/fs_utils.h +++ b/src/WINNT/afsd/fs_utils.h @@ -33,7 +33,7 @@ extern char *hostutil_GetNameByINet(afs_uint32 addr); extern struct hostent *hostutil_GetHostByName(char *namep); #endif -// extern long util_GetInt32(char *stringp, long *valuep); +extern long util_GetInt32(char *stringp, long *valuep); extern long fs_StripDriveLetter(char *inPathp, char *outPathp, long outSize);