+2002-07-27 Ken Raeburn <raeburn@mit.edu>
+
+ * kvno.c: Include stdlib.h.
+ (xusage): Renamed from usage; all callers changed.
+
2002-07-26 Ken Raeburn <raeburn@mit.edu>
* kvno.c (do_v5_kvno): New function, split out from main.
*/
#include <stdio.h>
+#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
char *prog;
-static void usage()
+static void xusage()
{
#ifdef KRB5_KRB4_COMPAT
- fprintf(stderr, "usage: %s [-4 | -e etype] service1 service2 ...\n", prog);
+ fprintf(stderr, "xusage: %s [-4 | -e etype] service1 service2 ...\n", prog);
#else
- fprintf(stderr, "usage: %s [-e etype] service1 service2 ...\n", prog);
+ fprintf(stderr, "xusage: %s [-e etype] service1 service2 ...\n", prog);
#endif
exit(1);
}
etypestr = optarg;
break;
case 'h':
- usage();
+ xusage();
break;
case 'q':
quiet = 1;
v4 = 1;
break;
default:
- usage();
+ xusage();
break;
}
}
if ((argc - optind) < 1)
- usage();
+ xusage();
if (etypestr != 0 && v4)
- usage();
+ xusage();
if (v4)
do_v4_kvno(argc - optind, argv + optind);
printf("%s: kvno = %d\n", names[i], creds.kvno);
}
#else
- usage(prog);
+ xusage(prog);
#endif
}