aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-11-28 03:48:05 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-12-06 00:23:44 +0000
commit75f8750524baf7c910f24f065b1d3fe386e7197c (patch)
tree3b628158d4c7c438bd3018b994ecdadfd94dfaa4 /lib/libc/net
parent4914a141fb6c49341baf6d99cfd2c69d7f618010 (diff)
libc/net/getprotoent.c: Mark write-only variables as unused
(cherry picked from commit f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21)
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getprotoent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c
index 73b069250499..b3bb52195dfc 100644
--- a/lib/libc/net/getprotoent.c
+++ b/lib/libc/net/getprotoent.c
@@ -144,11 +144,11 @@ int
__proto_marshal_func(char *buffer, size_t *buffer_size, void *retval,
va_list ap, void *cache_mdata)
{
- char *name;
- int num;
+ char *name __unused;
+ int num __unused;
struct protoent *proto;
- char *orig_buf;
- size_t orig_buf_size;
+ char *orig_buf __unused;
+ size_t orig_buf_size __unused;
struct protoent new_proto;
size_t desired_size, size, aliases_size;
@@ -231,8 +231,8 @@ int
__proto_unmarshal_func(char *buffer, size_t buffer_size, void *retval,
va_list ap, void *cache_mdata)
{
- char *name;
- int num;
+ char *name __unused;
+ int num __unused;
struct protoent *proto;
char *orig_buf;
size_t orig_buf_size;