From 518445423c434f656347db087d6e2d2797dca54f 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: svn://svn.code.sf.net/p/nuttx/code/trunk@4648 42af7a65-404d-4744-a932-0658087f49c3 --- lib/net/lib_inetpton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/lib_inetpton.c b/lib/net/lib_inetpton.c index 281d03d404..b4b97f2aed 100644 --- a/lib/net/lib_inetpton.c +++ b/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') ||