Author: ache
Date: Thu May  6 16:54:46 2010
New Revision: 207703
URL: http://svn.freebsd.org/changeset/base/207703

Log:
  While I am here, add more missing (unsigned char) casts to ctype() macros

Modified:
  head/usr.bin/calendar/io.c
  head/usr.bin/calendar/parsedata.c

Modified: head/usr.bin/calendar/io.c
==============================================================================
--- head/usr.bin/calendar/io.c  Thu May  6 16:39:43 2010        (r207702)
+++ head/usr.bin/calendar/io.c  Thu May  6 16:54:46 2010        (r207703)
@@ -163,7 +163,7 @@ cal(void)
                        continue;
 
                /* Trim spaces in front of the tab */
-               while (isspace(pp[-1]))
+               while (isspace((unsigned char)pp[-1]))
                        pp--;
 
                p = *pp;

Modified: head/usr.bin/calendar/parsedata.c
==============================================================================
--- head/usr.bin/calendar/parsedata.c   Thu May  6 16:39:43 2010        
(r207702)
+++ head/usr.bin/calendar/parsedata.c   Thu May  6 16:54:46 2010        
(r207703)
@@ -872,7 +872,7 @@ isonlydigits(char *s, int nostar)
        for (i = 0; s[i] != '\0'; i++) {
                if (nostar == 0 && s[i] == '*' && s[i + 1] == '\0')
                        return 1;
-               if (!isdigit(s[i]))
+               if (!isdigit((unsigned char)s[i]))
                        return (0);
        }
        return (1);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to