summaryrefslogtreecommitdiffstats
path: root/outchannel.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-03 16:32:27 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-03 16:32:27 +0000
commit489a51be2336584d3f90abbb4aa560197177c925 (patch)
tree9c3f271251bc664c3aef2f590bd0b2296243f520 /outchannel.c
parent53c1a7305e119b397c3e80acfdd4a6aecc7ce121 (diff)
downloadrsyslog-489a51be2336584d3f90abbb4aa560197177c925.tar.gz
rsyslog-489a51be2336584d3f90abbb4aa560197177c925.tar.xz
rsyslog-489a51be2336584d3f90abbb4aa560197177c925.zip
applied patch from Bartosz Kuzma to compile cleanly under NetBSD; changed a
number of char to unsigned char
Diffstat (limited to 'outchannel.c')
-rw-r--r--outchannel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/outchannel.c b/outchannel.c
index 2b64dba2..ef4f1ac6 100644
--- a/outchannel.c
+++ b/outchannel.c
@@ -62,11 +62,11 @@ static void skip_Comma(char **pp)
assert(*pp != NULL);
p = *pp;
- while(isspace(*p))
+ while(isspace((int)*p))
++p;
if(*p == ',')
++p;
- while(isspace(*p))
+ while(isspace((int)*p))
++p;
*pp = p;
}
@@ -99,7 +99,7 @@ static int get_Field(char **pp, char **pField)
*pp = p;
rsCStrFinish(pStrB);
- *pField = rsCStrConvSzStrAndDestruct(pStrB);
+ *pField = (char*) rsCStrConvSzStrAndDestruct(pStrB);
return 0;
}
@@ -122,7 +122,7 @@ static int get_off_t(char **pp, off_t *pOff_t)
p = *pp;
val = 0;
- while(*p && isdigit(*p)) {
+ while(*p && isdigit((int)*p)) {
val = val * 10 + (*p - '0');
++p;
}
@@ -163,7 +163,7 @@ static int get_restOfLine(char **pp, char **pBuf)
*pp = p;
rsCStrFinish(pStrB);
- *pBuf = rsCStrConvSzStrAndDestruct(pStrB);
+ *pBuf = (char*) rsCStrConvSzStrAndDestruct(pStrB);
return 0;
}