projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c06a3
)
Fix compile warning on NetBSD.
author
Andre Noll
<maan@systemlinux.org>
Wed, 21 Jan 2009 15:43:41 +0000
(16:43 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 21 Jan 2009 15:43:41 +0000
(16:43 +0100)
This fixes
color.c:71: warning: array subscript has type 'char'
color.c
patch
|
blob
|
history
diff --git
a/color.c
b/color.c
index bd09446c17ef9a7654b65960e165c85c14d7097b..d6abf13d717281705bde7671715095cf8da1666e 100644
(file)
--- 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);