From 92692b22217e9ce400957fa5cf2ade0c2519eb9a Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 29 Dec 2008 23:01:15 +0000 Subject: [PATCH] Signed/unsigned fixes and remove unused variable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21635 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/alt_prof.c | 4 ++-- src/lib/kadm5/logger.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 6bb093609..45f748d0f 100644 --- a/src/lib/kadm5/alt_prof.c +++ b/src/lib/kadm5/alt_prof.c @@ -142,7 +142,7 @@ string_to_boolean (const char *string, krb5_boolean *out) { static const char *const yes[] = { "y", "yes", "true", "t", "1", "on" }; static const char *const no[] = { "n", "no", "false", "f", "nil", "0", "off" }; - int i; + unsigned int i; for (i = 0; i < sizeof(yes)/sizeof(yes[0]); i++) if (!strcasecmp(string, yes[i])) { @@ -250,7 +250,7 @@ krb5_aprof_get_string(acontext, hierarchy, uselast, stringp) { krb5_error_code kret; char **values; - int i, lastidx; + int lastidx; if (!(kret = krb5_aprof_getvals(acontext, hierarchy, &values))) { for (lastidx=0; values[lastidx]; lastidx++); diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index 1dc886abd..efff81872 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -569,7 +569,7 @@ krb5_klog_init(krb5_context kcontext, char *ename, char *whoami, krb5_boolean do { "LOCAL7", LOG_LOCAL7 }, #endif /* LOG_LOCAL7 */ }; - int j; + unsigned int j; for (j = 0; j < sizeof(facilities)/sizeof(facilities[0]); j++) if (!strcasecmp(cp2, facilities[j].name)) { -- 2.26.2