char -> unsigned char

This commit is contained in:
christos 1998-12-19 23:37:14 +00:00
parent 86fc76a0a6
commit 9622cbbfb5
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vacation.c,v 1.15 1998/07/26 23:11:09 mycroft Exp $ */ /* $NetBSD: vacation.c,v 1.16 1998/12/19 23:37:14 christos Exp $ */
/* /*
* Copyright (c) 1983, 1987, 1993 * Copyright (c) 1983, 1987, 1993
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1987, 1993\n\
#if 0 #if 0
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94"; static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
#endif #endif
__RCSID("$NetBSD: vacation.c,v 1.15 1998/07/26 23:11:09 mycroft Exp $"); __RCSID("$NetBSD: vacation.c,v 1.16 1998/12/19 23:37:14 christos Exp $");
#endif /* not lint */ #endif /* not lint */
/* /*
@ -128,7 +128,7 @@ main(argc, argv)
iflag = 1; iflag = 1;
break; break;
case 'r': case 'r':
if (isdigit(*optarg)) { if (isdigit((unsigned char)*optarg)) {
interval = atol(optarg) * SECSPERDAY; interval = atol(optarg) * SECSPERDAY;
if (interval < 0) if (interval < 0)
usage(); usage();
@ -230,7 +230,7 @@ readheaders()
break; break;
if (!(p = strchr(buf, ':'))) if (!(p = strchr(buf, ':')))
break; break;
while (*++p && isspace(*p)); while (*++p && isspace((unsigned char)*p));
if (!*p) if (!*p)
break; break;
if (!strncasecmp(p, "junk", 4) || if (!strncasecmp(p, "junk", 4) ||
@ -249,7 +249,7 @@ readheaders()
cont = 1; cont = 1;
goto findme; goto findme;
default: default:
if (!isspace(*buf) || !cont || tome) { if (!isspace((unsigned char)*buf) || !cont || tome) {
cont = 0; cont = 0;
break; break;
} }