openafs-void-star-pointers-20071031
[openafs.git] / src / WINNT / afsd / sample / token.c
index ae384ca..305c0e8 100644 (file)
@@ -18,7 +18,7 @@
 #define KABADARGUMENT 1
 #define KLOGEXIT(code) exit(code)
 
-int CommandProc();
+int CommandProc(struct cmd_syndesc *, void *);
 
 static int zero_argc;
 static char **zero_argv;
@@ -36,7 +36,7 @@ void main (argc, argv)
     /* Start up sockets */
     WSAStartup(0x0101, &WSAjunk);
 
-    ts = cmd_CreateSyntax((char *) 0, CommandProc, 0, "obtain Kerberos authentication");
+    ts = cmd_CreateSyntax(NULL, CommandProc, NULL, "obtain Kerberos authentication");
 
 #define aXFLAG 0
 #define aPRINCIPAL 1
@@ -131,9 +131,8 @@ static int read_pw_string(char *s, int max)
     return !ok;
 }
 
-CommandProc (as, arock)
-  char *arock;
-  struct cmd_syndesc *as;
+int
+CommandProc (struct cmd_syndesc *as, void *arock)
 {
     char  name[MAXKTCNAMELEN];
     char  defaultCell[256];