From 292bd85db6a1daa9a32dd4cf0cc88a5a6451be45 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 9 Nov 2018 17:14:20 +0800 Subject: [PATCH] sockets: Trivial comment fixes lwip_getsockopt_internal/lwip_setsockopt_internal were renamed to lwip_getsockopt_impl/lwip_setsockopt_impl. Update the comment accordingly. Signed-off-by: Axel Lin --- src/api/sockets.c | 4 ++-- src/include/lwip/priv/sockets_priv.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index cb7df914..09523c51 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -2822,7 +2822,7 @@ lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen); #endif /* LWIP_MPU_COMPATIBLE */ - /* maybe lwip_getsockopt_internal has changed err */ + /* maybe lwip_getsockopt_impl has changed err */ err = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err; LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); #endif /* LWIP_TCPIP_CORE_LOCKING */ @@ -3263,7 +3263,7 @@ lwip_setsockopt(int s, int level, int optname, const void *optval, socklen_t opt } sys_arch_sem_wait((sys_sem_t *)(LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem), 0); - /* maybe lwip_getsockopt_internal has changed err */ + /* maybe lwip_setsockopt_impl has changed err */ err = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err; LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); #endif /* LWIP_TCPIP_CORE_LOCKING */ diff --git a/src/include/lwip/priv/sockets_priv.h b/src/include/lwip/priv/sockets_priv.h index d8f9904d..c604734c 100644 --- a/src/include/lwip/priv/sockets_priv.h +++ b/src/include/lwip/priv/sockets_priv.h @@ -99,7 +99,7 @@ struct lwip_sock { /** Maximum optlen used by setsockopt/getsockopt */ #define LWIP_SETGETSOCKOPT_MAXOPTLEN LWIP_MAX(16, sizeof(struct ifreq)) -/** This struct is used to pass data to the set/getsockopt_internal +/** This struct is used to pass data to the set/getsockopt_impl * functions running in tcpip_thread context (only a void* is allowed) */ struct lwip_setgetsockopt_data { /** socket index for which to change options */