From d045038299f9182ec38a67644df21b3150291f91 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 23 Apr 2012 20:58:47 +0000 Subject: [PATCH] Fix inetpton return value git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4648 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- 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 281d03d404..b4b97f2aed 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') ||