libc/net/gethostnamadr.c: mark write-only variables as __unused
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
701473ef94
commit
024547c9bd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user