]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use (unsigned char) not (int) to silence (char) array index warnings.
authorMark Andrews <marka@isc.org>
Fri, 17 Sep 2010 02:48:00 +0000 (02:48 +0000)
committerMark Andrews <marka@isc.org>
Fri, 17 Sep 2010 02:48:00 +0000 (02:48 +0000)
common/parse.c

index 3e1b3bb7aa4e27386ea38093f361a200e5bad696..f459d239c113fd2866e12ef5228b21793414b352 100644 (file)
@@ -4971,7 +4971,7 @@ struct option *option;
                        fmt = option->format;
 
                /* 'a' means always uniform */
-               if ((fmt[0] != 'Z') && (tolower((int)fmt[1]) == 'a')) 
+               if ((fmt[0] != 'Z') && (tolower((unsigned char)fmt[1]) == 'a')) 
                        uniform = 1;
 
                do {