diff --git a/c/decip4.c b/c/decip4.c index 6047ab2..13905d7 100644 --- a/c/decip4.c +++ b/c/decip4.c @@ -4,7 +4,7 @@ uint32_t numeric_ip4(const char *ip) { uint32_t octets = 0; uint8_t octet = 0; - + for(; *ip; ip += 1) { if(*ip == '.') { octets = (octets << 8) | octet; @@ -13,7 +13,7 @@ uint32_t numeric_ip4(const char *ip) { octet = (octet * 10) + (*ip - '0'); } } - + return (octets << 8) | octet; }