git: 75f8750524ba - stable/13 - libc/net/getprotoent.c: Mark write-only variables as unused

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 00:27:57 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=75f8750524baf7c910f24f065b1d3fe386e7197c

commit 75f8750524baf7c910f24f065b1d3fe386e7197c
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:48:05 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-06 00:23:44 +0000

    libc/net/getprotoent.c: Mark write-only variables as unused
    
    (cherry picked from commit f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21)
---
 lib/libc/net/getprotoent.c | 12 ++++++------
 1 file 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;