diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-23 20:58:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-23 20:58:47 +0000 |
commit | a83397dc4b1d3dbffdaf4abc95ae061bb4650153 (patch) | |
tree | 5dccdc042c2fb83eaf11746fd56b652b7b7a717d /nuttx/lib/net | |
parent | faf5098e0f900b5e5fcd6bea40e6ff9ff184e137 (diff) | |
download | px4-nuttx-a83397dc4b1d3dbffdaf4abc95ae061bb4650153.tar.gz px4-nuttx-a83397dc4b1d3dbffdaf4abc95ae061bb4650153.tar.bz2 px4-nuttx-a83397dc4b1d3dbffdaf4abc95ae061bb4650153.zip |
Fix inetpton return value
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4648 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/net')
-rw-r--r-- | nuttx/lib/net/lib_inetpton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/net/lib_inetpton.c b/nuttx/lib/net/lib_inetpton.c index 281d03d40..b4b97f2ae 100644 --- a/nuttx/lib/net/lib_inetpton.c +++ b/nuttx/lib/net/lib_inetpton.c @@ -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') || |