git: 20e0f16d3588 - stable/13 - libc/net/gethostnamadr.c: mark write-only variables as __unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 00:27:55 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285
commit 20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:22:24 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-06 00:23:44 +0000
libc/net/gethostnamadr.c: mark write-only variables as __unused
(cherry picked from commit 024547c9bd6f7e65d383199aab80dae08824ae48)
---
lib/libc/net/gethostnamadr.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index 718a64defab9..2da8024c47f4 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -258,10 +258,10 @@ static int
host_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *str;
- void *addr;
- socklen_t len;
- int type;
+ char *str __unused;
+ void *addr __unused;
+ socklen_t len __unused;
+ int type __unused;
struct hostent *ht;
struct hostent new_ht;
@@ -364,10 +364,10 @@ static int
host_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *str;
- void *addr;
- socklen_t len;
- int type;
+ char *str __unused;
+ void *addr __unused;
+ socklen_t len __unused;
+ int type __unused;
struct hostent *ht;
char *p;