svn rev #21635: trunk/src/lib/kadm5/

epeisach@MIT.EDU epeisach at MIT.EDU
Mon Dec 29 18:01:16 EST 2008


http://src.mit.edu/fisheye/changelog/krb5/?cs=21635
Commit By: epeisach
Log Message:
Signed/unsigned fixes and remove unused variable


Changed Files:
U   trunk/src/lib/kadm5/alt_prof.c
U   trunk/src/lib/kadm5/logger.c
Modified: trunk/src/lib/kadm5/alt_prof.c
===================================================================
--- trunk/src/lib/kadm5/alt_prof.c	2008-12-29 22:41:27 UTC (rev 21634)
+++ trunk/src/lib/kadm5/alt_prof.c	2008-12-29 23:01:15 UTC (rev 21635)
@@ -142,7 +142,7 @@
 {
     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_error_code	kret;
     char		**values;
-    int			i, lastidx;
+    int			lastidx;
 
     if (!(kret = krb5_aprof_getvals(acontext, hierarchy, &values))) {
 	for (lastidx=0; values[lastidx]; lastidx++);

Modified: trunk/src/lib/kadm5/logger.c
===================================================================
--- trunk/src/lib/kadm5/logger.c	2008-12-29 22:41:27 UTC (rev 21634)
+++ trunk/src/lib/kadm5/logger.c	2008-12-29 23:01:15 UTC (rev 21635)
@@ -569,7 +569,7 @@
 				{ "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)) {




More information about the cvs-krb5 mailing list