mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 08:43:33 +08:00
Fix typo in lib_inetntoa.c
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4916 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2959,5 +2959,10 @@
|
|||||||
* arch/*/include/limits.h: Change all values in all limits.h for all
|
* arch/*/include/limits.h: Change all values in all limits.h for all
|
||||||
architectures to signed decimal; the hex values were not sign extending
|
architectures to signed decimal; the hex values were not sign extending
|
||||||
appropriate in most uses (reported by Lorenz Meier).
|
appropriate in most uses (reported by Lorenz Meier).
|
||||||
|
* arch/arm/src/stm32/chip/stm32f103/7vc_pinmap: Fix typographical error in
|
||||||
|
two pinmap definition files.
|
||||||
|
* lib/net/lib_inetntoa.c: Fix typographical error that cause compilation
|
||||||
|
failure on platforms that do not support passing of structures as
|
||||||
|
parameters.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ FAR char *inet_ntoa(struct in_addr in)
|
|||||||
#else
|
#else
|
||||||
FAR char *_inet_ntoa(in_addr_t in)
|
FAR char *_inet_ntoa(in_addr_t in)
|
||||||
{
|
{
|
||||||
static char buffer[NET_ADDRSTRLEN+2];
|
static char buffer[INET_ADDRSTRLEN+2];
|
||||||
FAR char *ptr = (FAR char*)∈
|
FAR char *ptr = (FAR char*)∈
|
||||||
sprintf(buffer, "%d.%d.%d.%d", ptr[0], ptr[1], ptr[2], ptr[3]);
|
sprintf(buffer, "%d.%d.%d.%d", ptr[0], ptr[1], ptr[2], ptr[3]);
|
||||||
return buffer;
|
return buffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user