diff options
author | Ezra Peisach <epeisach@mit.edu> | 2008-12-29 23:01:15 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2008-12-29 23:01:15 +0000 |
commit | 92692b22217e9ce400957fa5cf2ade0c2519eb9a (patch) | |
tree | b9be67b288bcbaceb7d52e89d1d8ab532a271aa3 /src/lib | |
parent | b57a82edec6f75146618e1f264963faaefee2a1c (diff) | |
download | krb5-92692b22217e9ce400957fa5cf2ade0c2519eb9a.tar.gz krb5-92692b22217e9ce400957fa5cf2ade0c2519eb9a.tar.xz krb5-92692b22217e9ce400957fa5cf2ade0c2519eb9a.zip |
Signed/unsigned fixes and remove unused variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21635 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/kadm5/alt_prof.c | 4 | ||||
-rw-r--r-- | 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)) { |