]> granicus.if.org Git - sudo/commitdiff
Add casts to unsigned char for isspace() to quiet a gcc warning.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 26 Oct 2004 22:17:15 +0000 (22:17 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 26 Oct 2004 22:17:15 +0000 (22:17 +0000)
ldap.c

diff --git a/ldap.c b/ldap.c
index ba52bd6aa78cf3dbfbfe09b07a6fe30040c221ad..35939665686682218eab474483ffd32f944f825e 100644 (file)
--- a/ldap.c
+++ b/ldap.c
@@ -505,23 +505,23 @@ sudo_ldap_read_config()
     if (!*c)        continue; /* incomplete last line */
 
     /* skip whitespace before keyword */
-    while (isspace(*c)) c++;
+    while (isspace((unsigned char)*c)) c++;
     keyword=c;
 
     /* properly terminate keyword string */
-    while (*c && !isspace(*c)) c++;
+    while (*c && !isspace((unsigned char)*c)) c++;
     if (*c) {
       *c='\0'; /* terminate keyword */
       c++;
     }
 
     /* skip whitespace before value */
-    while (isspace(*c)) c++;
+    while (isspace((unsigned char)*c)) c++;
     value=c;
 
     /* trim whitespace after value */
     while (*c) c++; /* wind to end */
-    while (--c > value && isspace(*c)) *c='\0';
+    while (--c > value && isspace((unsigned char)*c)) *c='\0';
 
     /* The following macros make the code much more readable */