getaddrinfo_test: mark unused function parameters __unused to fix -Wunused

warnings

MFC after:	3 days
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-05-28 04:11:04 +00:00
parent c4519040b5
commit bd8f63f25c

View File

@ -28,7 +28,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
@ -125,7 +125,8 @@ compare_addrinfo_(struct addrinfo *ai1, struct addrinfo *ai2)
}
static int
compare_addrinfo(struct addrinfo *ai1, struct addrinfo *ai2, void *mdata)
compare_addrinfo(struct addrinfo *ai1, struct addrinfo *ai2,
void *mdata __unused)
{
int rv;
@ -344,7 +345,7 @@ addrinfo_read_snapshot_func(struct addrinfo *ai, char *line)
}
static int
addrinfo_test_correctness(struct addrinfo *ai, void *mdata)
addrinfo_test_correctness(struct addrinfo *ai, void *mdata __unused)
{
printf("testing correctness with the following data:\n");