diff options
author | 2013-11-25 17:29:19 +0000 | |
---|---|---|
committer | 2013-11-25 17:29:19 +0000 | |
commit | 357a1500a5fd26cabf41d0ce30eff4bca4efad3b (patch) | |
tree | 7628eb3b8a406a11b762aff8bfdde802fe9d6442 /lib/libc/net/inet_network.c | |
parent | rename magicnumber to globalsleepaddr (diff) | |
download | wireguard-openbsd-357a1500a5fd26cabf41d0ce30eff4bca4efad3b.tar.xz wireguard-openbsd-357a1500a5fd26cabf41d0ce30eff4bca4efad3b.zip |
use an unsigned char instead, to avoid lots of casts
Diffstat (limited to 'lib/libc/net/inet_network.c')
-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; |