Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300609
b: refs/heads/master
c: 46ba5b2
h: refs/heads/master
i:
  300607: 2c87fea
v: v3
  • Loading branch information
Jeffrin Jose authored and David S. Miller committed Apr 12, 2012
1 parent baadcaf commit 87c8208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fdbd1648be5db20d172bcd013c8874bb2000700
refs/heads/master: 46ba5b23c32667821b748b4e0b74667e750621cd
9 changes: 3 additions & 6 deletions trunk/net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 87c8208

Please sign in to comment.