From fe118e1c9133fe2d8aabc1e68a1e1bbbfadd427f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 13 Aug 2007 20:22:02 +0000 Subject: [PATCH] DEVEL15-windows-fs-utils-prototypes-20070813 use ANSI prototypes and function declarations (cherry picked from commit b20488de08d230125b3110ec51fe753ef514ddb7) --- src/WINNT/afsd/fs_utils.c | 11 +++-------- src/WINNT/afsd/fs_utils.h | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) 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); -- 2.39.5