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:
parent
02a72fde6c
commit
518445423c
@ -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') ||
|
||||
|
Loading…
Reference in New Issue
Block a user