From a0af35a9dbefe36440fcd6b603a89cf21041c0a1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 8 Nov 2002 02:28:40 +0000 Subject: Some minor changes from Stefan Allius to make conf and mconf compile under Solaris. --- extra/config/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra/config/conf.c') 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; -- cgit v1.2.3