diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-12 14:36:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-12 14:36:49 +0000 |
commit | 365a8f88070a1c17291ace5b367777e786409ebd (patch) | |
tree | a0baff75a8abfebcf9bad8fa93a32f2f95501011 /usr.sbin/nsd/nsd.c | |
parent | 8bb68394456e281c812bc0a3c1e0a7fafaa01345 (diff) |
Use proper casts for ctype functions. This is already fixed in nsd
trunk. OK doug@
Diffstat (limited to 'usr.sbin/nsd/nsd.c')
-rw-r--r-- | usr.sbin/nsd/nsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nsd/nsd.c b/usr.sbin/nsd/nsd.c index b8cfd3e3d59..dc37b31a3cd 100644 --- a/usr.sbin/nsd/nsd.c +++ b/usr.sbin/nsd/nsd.c @@ -829,11 +829,11 @@ main(int argc, char *argv[]) #ifdef HAVE_GETPWNAM /* Parse the username into uid and gid */ if (*nsd.username) { - if (isdigit((int)*nsd.username)) { + if (isdigit((unsigned char)*nsd.username)) { char *t; nsd.uid = strtol(nsd.username, &t, 10); if (*t != 0) { - if (*t != '.' || !isdigit((int)*++t)) { + if (*t != '.' || !isdigit((unsigned char)*++t)) { error("-u user or -u uid or -u uid.gid"); } nsd.gid = strtol(t, &t, 10); |