1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

Fix a couple of warnings on netbsd 3.

This commit is contained in:
Josh Elsasser 2006-02-05 16:00:30 +00:00
parent 74b6e3f3ab
commit 38050332f5

View file

@ -384,11 +384,11 @@ getstateval(struct cf_torrentstate *state, char *line) {
char *start, *end; char *start, *end;
/* skip any leading whitespace */ /* skip any leading whitespace */
while(isspace(*line)) while(isspace((int)*line))
line++; line++;
/* walk over the key, which may be alphanumerics as well as - or _ */ /* walk over the key, which may be alphanumerics as well as - or _ */
for(start = line; isalnum(*start) || '_' == *start || '-' == *start; start++) for(start = line; isalnum((int)*start) || '_' == *start || '-' == *start; start++)
; ;
/* they key must be immediately followed by an = */ /* they key must be immediately followed by an = */