From: Derrick Brashear Date: Mon, 11 Jul 2005 20:46:16 +0000 (+0000) Subject: STABLE14-log-protoize-20050618 X-Git-Tag: openafs-devel-1_3_85~3 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d628e7e5c2a398b73e07cb95a0a335ff1c787ce6;p=packages%2Fo%2Fopenafs.git STABLE14-log-protoize-20050618 protoize log directory (cherry picked from commit b6b62c852178e171eb00b1548ec169dcb51abf1b) --- diff --git a/src/log/kseal.c b/src/log/kseal.c index 5c060be5b..703954db2 100644 --- a/src/log/kseal.c +++ b/src/log/kseal.c @@ -37,9 +37,8 @@ RCSID #include "AFS_component_version_number.c" -main(argc, argv) - int argc; - char **argv; +int +main(int argc, char **argv) { struct ktc_token token; struct ktc_principal sname; diff --git a/src/log/tokens.c b/src/log/tokens.c index 5d9e9bbb8..dda8295f7 100644 --- a/src/log/tokens.c +++ b/src/log/tokens.c @@ -46,10 +46,8 @@ RCSID #include "AFS_component_version_number.c" -main(argc, argv) - int argc; - char **argv; - +int +main(int argc, char **argv) { /*Main program */ int cellNum; /*Cell entry number */ int rc; /*Return value from U_CellGetLocalTokens */ diff --git a/src/log/unlog.c b/src/log/unlog.c index 4432c6c10..ba4939d93 100644 --- a/src/log/unlog.c +++ b/src/log/unlog.c @@ -70,9 +70,8 @@ struct tokenInfo { }; -CommandProc(as, arock) - char *arock; - struct cmd_syndesc *as; +int +CommandProc(struct cmd_syndesc *as, char *arock) { #define MAXCELLS 20 /* XXX */ struct cmd_item *itp; @@ -102,10 +101,8 @@ CommandProc(as, arock) #include "AFS_component_version_number.c" -main(argc, argv) - int argc; - char *argv[]; - +int +main(int argc, char *argv[]) { /*Main routine */ struct cmd_syndesc *ts; register afs_int32 code; @@ -143,9 +140,8 @@ main(argc, argv) * then re-register the good ones. Ugly, but it works. */ -unlog_ForgetCertainTokens(list, listSize) - char **list; - int listSize; +int +unlog_ForgetCertainTokens(char **list, int listSize) { unsigned count, index, index2; afs_int32 code; @@ -212,10 +208,8 @@ unlog_ForgetCertainTokens(list, listSize) /* * 0 if not in list, 1 if in list */ -unlog_CheckUnlogList(list, count, principal) - char **list; - int count; - struct ktc_principal *principal; +int +unlog_CheckUnlogList(char **list, int count, struct ktc_principal *principal) { do { if (strcmp(*list, principal->cell) == 0) @@ -232,9 +226,8 @@ unlog_CheckUnlogList(list, count, principal) * because it assumes it isn't a problem. */ -unlog_NormalizeCellNames(list, size) - char **list; - int size; +int +unlog_NormalizeCellNames(char **list, int size) { char *newCellName, *lcstring(); unsigned index; @@ -279,11 +272,8 @@ unlog_NormalizeCellNames(list, size) * check given list to assure tokens were held for specified cells * prints warning messages for those cells without such entries. */ -unlog_VerifyUnlog(cellList, cellListSize, tokenList, tokenListSize) - char **cellList; - int cellListSize; - struct tokenInfo *tokenList; - int tokenListSize; +int +unlog_VerifyUnlog(char **cellList, int cellListSize, struct tokenInfo *tokenList, int tokenListSize) { int index;