From: Todd C. Miller Date: Fri, 18 Jun 2010 22:39:40 +0000 (-0400) Subject: Quiet a compiler warning. X-Git-Tag: SUDO_1_8_0~440 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41b15ae81eafcce000d36bfc053297487bddc430;p=sudo Quiet a compiler warning. --- diff --git a/plugins/sudoers/getdate.c b/plugins/sudoers/getdate.c index 979355b11..289a893eb 100644 --- a/plugins/sudoers/getdate.c +++ b/plugins/sudoers/getdate.c @@ -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; diff --git a/plugins/sudoers/getdate.y b/plugins/sudoers/getdate.y index e22ac4684..8965fbdf6 100644 --- a/plugins/sudoers/getdate.y +++ b/plugins/sudoers/getdate.y @@ -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;