From: Thibault Godouet Date: Tue, 12 Jun 2001 06:40:33 +0000 (+0000) Subject: added an (int) to avoid a warning X-Git-Tag: ver2_9_4~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d183adc736a8c99ebdfff5e131db5106c27a365b;p=thirdparty%2Ffcron.git added an (int) to avoid a warning --- diff --git a/allow.c b/allow.c index b9b4305..edea906 100644 --- a/allow.c +++ b/allow.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: allow.c,v 1.7 2001-06-05 10:19:10 thib Exp $ */ + /* $Id: allow.c,v 1.8 2001-06-12 06:40:54 thib Exp $ */ #include "fcrontab.h" #include "allow.h" @@ -53,7 +53,7 @@ in_file(char *str, char *file) /* skip leading and trailing blanks, comments */ start = buf; - while ( *start != '\0' && isspace(*start) ) + while ( *start != '\0' && isspace( (int) *start) ) start++; if ( *start == '#' || *start == '\0' ) continue; diff --git a/subs.c b/subs.c index f0f9300..55a8a82 100644 --- a/subs.c +++ b/subs.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: subs.c,v 1.8 2001-05-17 00:53:55 thib Exp $ */ + /* $Id: subs.c,v 1.9 2001-06-12 06:40:33 thib Exp $ */ #include "global.h" #include "subs.h" @@ -42,7 +42,7 @@ remove_blanks(char *str) /* scan backward to the first character that is not a space */ do {c--;} - while (c >= str && isspace(*c)); + while (c >= str && isspace( (int) *c)); /* if last char is a '\n', we remove it */ if ( *c == '\n' )