From 5a185a0fbd0116b2e1cff7fef19e6fdce80c8736 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 30 Sep 2015 13:55:09 +0200 Subject: [PATCH] minor: fixed coding style in ip6addr_aton() --- src/core/ipv6/ip6_addr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/ipv6/ip6_addr.c b/src/core/ipv6/ip6_addr.c index 85823b5e..d11e8095 100644 --- a/src/core/ipv6/ip6_addr.c +++ b/src/core/ipv6/ip6_addr.c @@ -79,10 +79,11 @@ ip6addr_aton(const char *cp, ip6_addr_t *addr) zero_blocks may be 1 even if there are no :: sequences */ zero_blocks = 8; for (s = cp; *s != 0; s++) { - if (*s == ':') + if (*s == ':') { zero_blocks--; - else if (!isxdigit(*s)) + } else if (!isxdigit(*s)) { break; + } } /* parse each block */ @@ -112,8 +113,7 @@ ip6addr_aton(const char *cp, ip6_addr_t *addr) zero_blocks--; if (current_block_index & 0x1) { addr_index++; - } - else { + } else { if (addr) { addr->addr[addr_index] = 0; }