summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <>2015-10-22 23:55:51 +0000
committermmcc <>2015-10-22 23:55:51 +0000
commit3dd284a67fd444a40f7de3ef07b8d29b0dfc6e78 (patch)
treea39eb74d097c884963c945104c58a9d250f70ade
parentfade978361a46e40e536507c555c496dc408eeaf (diff)
downloadopenbsd-3dd284a67fd444a40f7de3ef07b8d29b0dfc6e78.tar.gz
openbsd-3dd284a67fd444a40f7de3ef07b8d29b0dfc6e78.tar.bz2
openbsd-3dd284a67fd444a40f7de3ef07b8d29b0dfc6e78.zip
Cast ctype function arguments to unsigned char.
ok guenther@
-rw-r--r--src/lib/libc/net/inet_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/inet_network.c b/src/lib/libc/net/inet_network.c
index ef8f21b280..7b0cf50e79 100644
--- a/src/lib/libc/net/inet_network.c
+++ b/src/lib/libc/net/inet_network.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_network.c,v 1.12 2015/09/13 21:36:08 guenther Exp $ */ 1/* $OpenBSD: inet_network.c,v 1.13 2015/10/22 23:55:51 mmcc Exp $ */
2/* 2/*
3 * Copyright (c) 1983, 1993 3 * Copyright (c) 1983, 1993
4 * The Regents of the University of California. All rights reserved. 4 * The Regents of the University of California. All rights reserved.
@@ -71,7 +71,7 @@ again:
71 *pp++ = val, cp++; 71 *pp++ = val, cp++;
72 goto again; 72 goto again;
73 } 73 }
74 if (*cp && !isspace(*cp)) 74 if (*cp && !isspace((unsigned char)*cp))
75 return (INADDR_NONE); 75 return (INADDR_NONE);
76 *pp++ = val; 76 *pp++ = val;
77 n = pp - parts; 77 n = pp - parts;