mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Fix inetpton return value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4648 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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') ||
|
||||
|
||||
Reference in New Issue
Block a user