summaryrefslogtreecommitdiff
path: root/libc/inet/getnet.c
diff options
context:
space:
mode:
authorSven Linker <sven.linker@kernkonzept.com>2024-02-20 11:00:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-20 19:37:25 +0100
commit0f4669a6ec932dd6d037810d64286ba2f4e02ee0 (patch)
treead8fd35c0103a880910853fafaefc8c240b6f93c /libc/inet/getnet.c
parent76c311c44ab684dca1ac0834f3afe40188ef8812 (diff)
libc: Fix some unused parameter warnings
Diffstat (limited to 'libc/inet/getnet.c')
-rw-r--r--libc/inet/getnet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/inet/getnet.c b/libc/inet/getnet.c
index d90fa701e..8743fb9a5 100644
--- a/libc/inet/getnet.c
+++ b/libc/inet/getnet.c
@@ -69,6 +69,7 @@ int getnetent_r(struct netent *result_buf,
char **tok = NULL;
const size_t aliaslen = sizeof(char *) * MAXTOKENS;
int ret = ERANGE;
+ (void)h_errnop;
*result = NULL;
if (buflen < aliaslen
@@ -147,6 +148,7 @@ int getnetbyname_r(const char *name,
{
register char **cp;
int ret, herrnop;
+ (void)h_errnop;
__UCLIBC_MUTEX_LOCK(mylock);
setnetent(net_stayopen);
@@ -181,6 +183,7 @@ int getnetbyaddr_r(uint32_t net, int type,
int *h_errnop)
{
int ret, herrnop;
+ (void)h_errnop;
__UCLIBC_MUTEX_LOCK(mylock);
setnetent(net_stayopen);