Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2010 16:54:47 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207703 - head/usr.bin/calendar
Message-ID:  <201005061654.o46GslfG033117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005061654.o46GslfG033117>