From: Sam Hartman Date: Wed, 14 Jun 1995 18:51:11 +0000 (+0000) Subject: Fix up places in tests where return type of getopt demoted to X-Git-Tag: krb5-1.0-beta6~1749 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=40efb562e1ee4532b99e05b506393d158c208997;p=krb5.git Fix up places in tests where return type of getopt demoted to char; doesn't work when char is unsigned. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6061 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm/ChangeLog b/src/lib/kadm/ChangeLog index f89cb83b6..4a8ca1e18 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 14 14:36:13 1995 Sam Hartman + + * 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 * logger.c: Don't check to make sure unix is defined for diff --git a/src/lib/kadm/t_dbentry.c b/src/lib/kadm/t_dbentry.c index 33f61402d..c59bb9fa7 100644 --- a/src/lib/kadm/t_dbentry.c +++ b/src/lib/kadm/t_dbentry.c @@ -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; diff --git a/src/lib/kadm/t_ktentry.c b/src/lib/kadm/t_ktentry.c index 0b160d033..0367947f2 100644 --- a/src/lib/kadm/t_ktentry.c +++ b/src/lib/kadm/t_ktentry.c @@ -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;