diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-25 17:29:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-25 17:29:20 +0000 |
commit | fc3c75d354684cf10d0f132a30a9c266ae4a4c7b (patch) | |
tree | 8e34aa7599b43636211067f574118d245b18a5ac | |
parent | b02ed43376fc1bf373f437adc6af52ad1888fafc (diff) |
use an unsigned char instead, to avoid lots of casts
-rw-r--r-- | lib/libc/net/inet_network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c index 8b26ba8ff9f..ecf554e4f9a 100644 --- a/lib/libc/net/inet_network.c +++ b/lib/libc/net/inet_network.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_network.c,v 1.10 2005/08/06 20:30:03 espie Exp $ */ +/* $OpenBSD: inet_network.c,v 1.11 2013/11/25 17:29:19 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -42,7 +42,7 @@ in_addr_t inet_network(const char *cp) { in_addr_t val, base, n; - char c; + u_char c; in_addr_t parts[4], *pp = parts; int i; |