Fix inetpton return value

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4648 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-04-23 20:58:47 +00:00
parent 0073ac83ff
commit d045038299
+2 -2
View File
@@ -177,7 +177,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
/* Return 1 if the conversion succeeds */
return 0;
return 1;
}
ndots++;
@@ -307,7 +307,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
/* Return 1 if the conversion succeeds */
return 0;
return 1;
}
}
else if ((ch >= '0' && ch <= '9') ||