From 87c8208156dd5ac1a39f8f29fcc556f377567930 Mon Sep 17 00:00:00 2001 From: Jeffrin Jose Date: Sun, 8 Apr 2012 06:07:42 +0000 Subject: [PATCH] --- yaml --- r: 300609 b: refs/heads/master c: 46ba5b23c32667821b748b4e0b74667e750621cd h: refs/heads/master i: 300607: 2c87feaac298588debdbaf2e7a89e8d256cb4cfd v: v3 --- [refs] | 2 +- trunk/net/core/utils.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 4b52d6eb32a0..9ce9d1e1e7dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6fdbd1648be5db20d172bcd013c8874bb2000700 +refs/heads/master: 46ba5b23c32667821b748b4e0b74667e750621cd diff --git a/trunk/net/core/utils.c b/trunk/net/core/utils.c index dc3c3faff2f4..39895a65e54a 100644 --- a/trunk/net/core/utils.c +++ b/trunk/net/core/utils.c @@ -58,14 +58,11 @@ __be32 in_aton(const char *str) int i; l = 0; - for (i = 0; i < 4; i++) - { + for (i = 0; i < 4; i++) { l <<= 8; - if (*str != '\0') - { + if (*str != '\0') { val = 0; - while (*str != '\0' && *str != '.' && *str != '\n') - { + while (*str != '\0' && *str != '.' && *str != '\n') { val *= 10; val += *str - '0'; str++;