From: Andre Noll Date: Wed, 21 Jan 2009 15:43:41 +0000 (+0100) Subject: Fix compile warning on NetBSD. X-Git-Tag: v0.3.4~73^2~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9cfd0425783bc9828739758b374cfe86c20d8a19 Fix compile warning on NetBSD. This fixes color.c:71: warning: array subscript has type 'char' --- diff --git a/color.c b/color.c index bd09446c..d6abf13d 100644 --- a/color.c +++ b/color.c @@ -68,11 +68,11 @@ int color_parse(const char *value, char *dst) const char *word = ptr; int val, len = 0; - while (word[len] && !isspace(word[len])) + while (word[len] && !para_isspace(word[len])) len++; ptr = word + len; - while (*ptr && isspace(*ptr)) + while (*ptr && para_isspace(*ptr)) ptr++; val = parse_color(word, len);