Signed/unsigned fixes and remove unused variable
authorEzra Peisach <epeisach@mit.edu>
Mon, 29 Dec 2008 23:01:15 +0000 (23:01 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 29 Dec 2008 23:01:15 +0000 (23:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21635 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/alt_prof.c
src/lib/kadm5/logger.c

index 6bb093609d83f7ed8b6ad82909c2bb4714b42b92..45f748d0f93366c1af1372987e84819898a1c76b 100644 (file)
@@ -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++);
index 1dc886abd7eaf7ba2d9eb6ac8787623bd495f915..efff81872dc108a815719be612c3708cd828f76d 100644 (file)
@@ -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)) {