* kvno.c: Include stdlib.h.
authorKen Raeburn <raeburn@mit.edu>
Sun, 28 Jul 2002 00:36:29 +0000 (00:36 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 28 Jul 2002 00:36:29 +0000 (00:36 +0000)
(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
src/clients/kvno/kvno.c

index db2c418bc1cc1209547246eb9345937347941920..ab9081bf94d97c22176051ddcb2645281fbbdbfe 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 1c6180b7fd2c32b3ebf8367ef5722e3b7fb8cfa7..080e512e63cc80500b7f154e86b618eea79f376f 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #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
 }