1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/ntp/files/patch-aa
2003-10-31 00:36:13 +00:00

40 lines
1.0 KiB
Plaintext

--- 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++;
@@ -1904,8 +1904,8 @@
cp++;
*tp-- = '\0';
while (tp >= buf) {
- if (!isspace((int)(*tp)))
+ if (!isspace((unsigned char)(*tp)))
break;
*tp-- = '\0';
}
reqpt = cp;