]> granicus.if.org Git - sudo/commitdiff
Quiet a compiler warning.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 18 Jun 2010 22:39:40 +0000 (18:39 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 18 Jun 2010 22:39:40 +0000 (18:39 -0400)
plugins/sudoers/getdate.c
plugins/sudoers/getdate.y

index 979355b11d7b46967c47f86aebd66c974e553be3..289a893ebfcb8746b4e64b4c3c5141879d09ea63 100644 (file)
@@ -744,7 +744,7 @@ LookupWord(buff)
     /* Make it lowercase. */
     for (p = buff; *p; p++)
        if (isupper((unsigned char)*p))
-           *p = tolower(*p);
+           *p = tolower((unsigned char)*p);
 
     if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
        yylval.Meridian = MERam;
index e22ac46842d2d901b98a679f2e06ad5391b2c4de..8965fbdf640d3233b41bc7096c4de9a750c0c079 100644 (file)
@@ -677,7 +677,7 @@ LookupWord(buff)
     /* Make it lowercase. */
     for (p = buff; *p; p++)
        if (isupper((unsigned char)*p))
-           *p = tolower(*p);
+           *p = tolower((unsigned char)*p);
 
     if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
        yylval.Meridian = MERam;