Compile without warnings on NetBSD

This commit is contained in:
Roy Marples
2008-01-09 23:22:04 +00:00
parent 06634f6309
commit ddf25cbcb7
6 changed files with 35 additions and 15 deletions

View File

@@ -181,7 +181,7 @@ static void parse_schedule_item (schedulelist_t *item, const char *string)
if (strcmp (string,"forever") == 0)
item->type = schedule_forever;
else if (isdigit (string[0])) {
else if (isdigit ((int) string[0])) {
item->type = schedule_timeout;
errno = 0;
if (sscanf (string, "%d", &item->value) != 1)