blob: 9d7f08f69ba225e2bf98cb9372d9f5a2b0c6c66a (
plain)
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
|
$NetBSD: patch-ab,v 1.2 2004/12/30 21:48:03 tron Exp $
--- ipstat/config.c.orig 1999-07-11 23:03:58.000000000 +0100
+++ ipstat/config.c 2004-12-30 21:41:39.000000000 +0000
@@ -56,11 +56,11 @@
{
(*Line)++;
- while (isspace(*Ptr)) Ptr++;
+ while (isspace((int)*Ptr)) Ptr++;
if (*Ptr=='#') continue;
Len=strlen(Ptr);
- while ((Len>0)&&isspace(Ptr[Len-1])) Len--;
+ while ((Len>0)&&isspace((int)Ptr[Len-1])) Len--;
if (Len==0) continue;
Ptr[Len]='\0';
@@ -76,7 +76,7 @@
char *Word,*Ptr;
Ptr=*Buffer;
- while (isspace(*Ptr)) Ptr++;
+ while (isspace((int)*Ptr)) Ptr++;
if (*Ptr=='\0') return NULL;
if (AllowQuotes&&(*Ptr=='"'))
@@ -90,7 +90,7 @@
{
Word=Ptr;
while (*Ptr!='\0')
- if (isspace(*Ptr))
+ if (isspace((int)*Ptr))
{
*Ptr++='\0';
break;
|