]> granicus.if.org Git - fcron/commitdiff
added an (int) to avoid a warning
authorthib <thib>
Tue, 12 Jun 2001 06:40:33 +0000 (06:40 +0000)
committerthib <thib>
Tue, 12 Jun 2001 06:40:33 +0000 (06:40 +0000)
allow.c
subs.c

diff --git a/allow.c b/allow.c
index b9b430524e231d86ccf385574f9c324ce4054b63..edea9065a2c2a6120ca9e10024cb0c66bb8459cd 100644 (file)
--- 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 f0f930092f62ec3a5aed45e6012e40fdc4aa7f8f..55a8a8224e8701cfb1c80440177f60f8c78deebd 100644 (file)
--- 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' )