diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-08 02:28:40 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-08 02:28:40 +0000 |
commit | a0af35a9dbefe36440fcd6b603a89cf21041c0a1 (patch) | |
tree | 4b595e16b3b45ab00fde5cd89076de48bf9aefb2 /extra/config/conf.c | |
parent | 92e03da6a446faa5ad8946fc90794e918db90454 (diff) |
Some minor changes from Stefan Allius to make conf and
mconf compile under Solaris.
Diffstat (limited to 'extra/config/conf.c')
-rw-r--r-- | extra/config/conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/config/conf.c b/extra/config/conf.c index 910d52ce6..6bc5de943 100644 --- a/extra/config/conf.c +++ b/extra/config/conf.c @@ -78,7 +78,7 @@ static void strip(char *str) char *p = str; int l; - while ((isspace(*p))) + while ((isspace((int)*p))) p++; l = strlen(p); if (p != str) @@ -86,7 +86,7 @@ static void strip(char *str) if (!l) return; p = str + l - 1; - while ((isspace(*p))) + while ((isspace((int)*p))) *p-- = 0; } @@ -358,7 +358,7 @@ static int conf_choice(struct menu *menu) continue; } if (line[0]) { - len = strlen(line) - 1; + len = strlen(line); line[len] = 0; def_menu = NULL; |