Fix up places in tests where return type of getopt demoted to
authorSam Hartman <hartmans@mit.edu>
Wed, 14 Jun 1995 18:51:11 +0000 (18:51 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 14 Jun 1995 18:51:11 +0000 (18:51 +0000)
char; doesn't work when char is unsigned.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6061 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm/ChangeLog
src/lib/kadm/t_dbentry.c
src/lib/kadm/t_ktentry.c

index f89cb83b6bb02cce0a7cc5a43e92a81045b8043d..4a8ca1e1813015c8f338abcd0eced1a76c287776 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun 14 14:36:13 1995  Sam Hartman  <hartmans@tardis.MIT.EDU>
+
+       * t_dbentry.c (main): option should be an int so that comparisons
+        against EOF work when char unsigned.
+
 Tue Jun 13 14:37:25 1995  Sam Hartman  <hartmans@tardis.MIT.EDU>
 
        * logger.c: Don't check to make sure unix is defined for
index 33f61402dad90f73f69d6ee7647647fdc912e7fd..c59bb9fa743751dca6093d7ae1b95e704fdc9054 100644 (file)
@@ -750,7 +750,7 @@ main(argc, argv)
     krb5_boolean       verbose;
     krb5_int32         randompasses;
     krb5_int32         error;
-    char               option;
+    int                option;
     extern char                *optarg;
     char               *programname;
     int                        i;
index 0b160d033227b7caade66f90e792cac4a23f940a..0367947f2721a771296b32c9b2dca391eb6b5f06 100644 (file)
@@ -354,7 +354,7 @@ main(argc, argv)
     krb5_boolean       verbose;
     krb5_int32         randompasses;
     krb5_int32         error;
-    char               option;
+    int                option;
     extern char                *optarg;
     char               *programname;
     int                        i;