Fix inetpton return value

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4648 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-04-23 20:58:47 +00:00
parent 02a72fde6c
commit 518445423c

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') ||