From 486f00fd1cb78dfb9326c92ad51d66f0f605bfde Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 28 Jul 2002 00:36:29 +0000 Subject: [PATCH] * kvno.c: Include stdlib.h. (xusage): Renamed from usage; all callers changed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14670 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kvno/ChangeLog | 5 +++++ src/clients/kvno/kvno.c | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/clients/kvno/ChangeLog b/src/clients/kvno/ChangeLog index db2c418bc..ab9081bf9 100644 --- a/src/clients/kvno/ChangeLog +++ b/src/clients/kvno/ChangeLog @@ -1,3 +1,8 @@ +2002-07-27 Ken Raeburn + + * kvno.c: Include stdlib.h. + (xusage): Renamed from usage; all callers changed. + 2002-07-26 Ken Raeburn * kvno.c (do_v5_kvno): New function, split out from main. diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index 1c6180b7f..080e512e6 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -25,6 +25,7 @@ */ #include +#include #ifdef HAVE_UNISTD_H #include #endif @@ -35,12 +36,12 @@ extern char *optarg; 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); } @@ -65,7 +66,7 @@ int main(int argc, char *argv[]) etypestr = optarg; break; case 'h': - usage(); + xusage(); break; case 'q': quiet = 1; @@ -74,16 +75,16 @@ int main(int argc, char *argv[]) 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); @@ -135,7 +136,7 @@ static void do_v4_kvno (int count, char *names[]) printf("%s: kvno = %d\n", names[i], creds.kvno); } #else - usage(prog); + xusage(prog); #endif } -- 2.26.2