From a83397dc4b1d3dbffdaf4abc95ae061bb4650153 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 23 Apr 2012 20:58:47 +0000 Subject: Fix inetpton return value git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4648 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/net/lib_inetpton.c | 4 ++-- 1 file 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') || -- cgit v1.2.3