diff options
author | Shane Kerr <shane@isc.org> | 2007-07-13 06:43:43 +0000 |
---|---|---|
committer | Shane Kerr <shane@isc.org> | 2007-07-13 06:43:43 +0000 |
commit | 28868515f6cb8ec3a78773391945ac89d555d65d (patch) | |
tree | 108b4801b3d3d019278281eb276288271480afe3 /minires/ns_date.c | |
parent | 763cba6b918975315a644646137fec48e4953058 (diff) | |
download | isc-dhcp-28868515f6cb8ec3a78773391945ac89d555d65d.tar.gz |
Code cleanup to remove warnings from "gcc -Wall".
See RT ticket #16988 for more.
Diffstat (limited to 'minires/ns_date.c')
-rw-r--r-- | minires/ns_date.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/minires/ns_date.c b/minires/ns_date.c index 88e6b4c9..c24b2b74 100644 --- a/minires/ns_date.c +++ b/minires/ns_date.c @@ -22,7 +22,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_date.c,v 1.4 2007/05/29 18:11:56 each Exp $"; +static const char rcsid[] = "$Id: ns_date.c,v 1.5 2007/07/13 06:43:42 shane Exp $"; #endif /* Import. */ @@ -48,7 +48,7 @@ static const char rcsid[] = "$Id: ns_date.c,v 1.4 2007/05/29 18:11:56 each Exp $ /* Forward. */ -static int datepart(const unsigned char *, int, int, int, int *); +static int datepart(const char *, int, int, int, int *); /* Public. */ @@ -118,12 +118,12 @@ ns_datetosecs(const char *cp, int *errp) { * Don't reset the flag if there is no error. */ static int -datepart(const unsigned char *buf, int size, int min, int max, int *errp) { +datepart(const char *buf, int size, int min, int max, int *errp) { int result = 0; int i; for (i = 0; i < size; i++) { - if (!isdigit(buf[i])) + if (!isdigit((unsigned char)buf[i])) *errp = 1; result = (result * 10) + buf[i] - '0'; } |