1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

libc/net/gethostnamadr.c: mark write-only variables as __unused

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2021-11-28 05:22:24 +02:00
parent 701473ef94
commit 024547c9bd

View File

@ -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;