svn commit: r319039 - head/lib/libc/tests/nss
Ngie Cooper
ngie at FreeBSD.org
Sun May 28 04:12:54 UTC 2017
Author: ngie
Date: Sun May 28 04:12:52 2017
New Revision: 319039
URL: https://svnweb.freebsd.org/changeset/base/319039
Log:
getserv_test: mark unused parameters __unused to fix corresponding
warnings
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Modified:
head/lib/libc/tests/nss/getserv_test.c
Modified: head/lib/libc/tests/nss/getserv_test.c
==============================================================================
--- head/lib/libc/tests/nss/getserv_test.c Sun May 28 04:12:02 2017 (r319038)
+++ head/lib/libc/tests/nss/getserv_test.c Sun May 28 04:12:52 2017 (r319039)
@@ -300,7 +300,7 @@ servent_fill_test_data(struct servent_te
}
static int
-servent_test_correctness(struct servent *serv, void *mdata)
+servent_test_correctness(struct servent *serv, void *mdata __unused)
{
printf("testing correctness with the following data:\n");
dump_servent(serv);
@@ -403,7 +403,7 @@ servent_test_getservbyport(struct serven
}
static int
-servent_test_getservent(struct servent *serv, void *mdata)
+servent_test_getservent(struct servent *serv, void *mdata __unused)
{
/* Only correctness can be checked when doing 1-pass test for
* getservent(). */
More information about the svn-src-head
mailing list