aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-11-28 03:45:52 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-12-06 00:23:44 +0000
commit4914a141fb6c49341baf6d99cfd2c69d7f618010 (patch)
tree27d965046d87d38b4a427234eda76c09fd279438 /lib/libc/net
parent20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285 (diff)
libc/net/getnetnamadr.c: Mark write-only variables as unused
(cherry picked from commit 1c4f305d21c069ebfdab6baada0837f7ecc810ea)
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getnetnamadr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c
index 2d9776685cf9..82ff089c1f1b 100644
--- a/lib/libc/net/getnetnamadr.c
+++ b/lib/libc/net/getnetnamadr.c
@@ -121,12 +121,12 @@ static int
net_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *name;
- uint32_t net;
- int type;
+ char *name __unused;
+ uint32_t net __unused;
+ int type __unused;
struct netent *ne;
- char *orig_buf;
- size_t orig_buf_size;
+ char *orig_buf __unused;
+ size_t orig_buf_size __unused;
struct netent new_ne;
size_t desired_size, size, aliases_size;
@@ -210,9 +210,9 @@ static int
net_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *name;
- uint32_t net;
- int type;
+ char *name __unused;
+ uint32_t net __unused;
+ int type __unused;
struct netent *ne;
char *orig_buf;
size_t orig_buf_size;