summaryrefslogtreecommitdiff
path: root/net/ntp-stable/files/patch-aa
blob: 2b418488de440c9adf8b91dbb4e60b311441c16c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ntpd/ntp_control.c.orig	Mon Apr  9 13:19:56 2001
+++ ntpd/ntp_control.c	Wed Apr 11 20:53:28 2001
@@ -1823,7 +1823,7 @@
 	 * Delete leading commas and white space
 	 */
 	while (reqpt < reqend && (*reqpt == ',' ||
-	    isspace((int)*reqpt)))
+	    isspace((unsigned char)*reqpt)))
 		reqpt++;
 	if (reqpt >= reqend)
 		return (0);
@@ -1846,7 +1846,7 @@
 				tp++;
 			}
 			if ((*tp == '\0') || (*tp == '=')) {
-				while (cp < reqend && isspace((int)*cp))
+				while (cp < reqend && isspace((unsigned char)*cp))
 					cp++;
 				if (cp == reqend || *cp == ',') {
 					buf[0] = '\0';
@@ -1859,7 +1859,7 @@
 				if (*cp == '=') {
 					cp++;
 					tp = buf;
-					while (cp < reqend && isspace((int)*cp))
+					while (cp < reqend && isspace((unsigned char)*cp))
 						cp++;
 					while (cp < reqend && *cp != ',') {
 						*tp++ = *cp++;
@@ -1870,7 +1870,7 @@
 						cp++;
 					while (tp > buf) {
 						*tp-- = '\0';
-						if (!isspace((int)(*tp)))
+						if (!isspace((unsigned char)(*tp)))
 							break;
 					}
 					reqpt = cp;