diff options
| author | Xin LI <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
| commit | c373d9289d1987abe45e339b5aa37f05460e977f (patch) | |
| tree | eacecf05ade498902c426d07b76ce3d5e1306ffe /lib/isc/inet_aton.c | |
| parent | 49b7d963372f963c2eab9435fa69aa1f61326111 (diff) | |
Diffstat (limited to 'lib/isc/inet_aton.c')
| -rw-r--r-- | lib/isc/inet_aton.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/isc/inet_aton.c b/lib/isc/inet_aton.c index 14b4887f4f16..3fc3a4db87a5 100644 --- a/lib/isc/inet_aton.c +++ b/lib/isc/inet_aton.c @@ -92,7 +92,7 @@ static char rcsid[] = "$Id: inet_aton.c,v 1.23 2008/12/01 23:47:45 tbox Exp $"; int isc_net_aton(const char *cp, struct in_addr *addr) { unsigned long val; - int base, n; + int base; unsigned char c; isc_uint8_t parts[4]; isc_uint8_t *pp = parts; @@ -166,8 +166,7 @@ isc_net_aton(const char *cp, struct in_addr *addr) { * Concoct the address according to * the number of parts specified. */ - n = pp - parts + 1; - switch (n) { + switch (pp - parts + 1) { case 1: /* a -- 32 bits */ break; |
