svn commit: r319029 - head/lib/libc/tests/nss
Ngie Cooper
ngie at FreeBSD.org
Sun May 28 03:42:51 UTC 2017
Author: ngie
Date: Sun May 28 03:42:49 2017
New Revision: 319029
URL: https://svnweb.freebsd.org/changeset/base/319029
Log:
Staticize functions and remove unused variables to aid with bumping WARNS
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Modified:
head/lib/libc/tests/nss/getaddrinfo_test.c
head/lib/libc/tests/nss/getgr_test.c
head/lib/libc/tests/nss/getpw_test.c
head/lib/libc/tests/nss/getusershell_test.c
Modified: head/lib/libc/tests/nss/getaddrinfo_test.c
==============================================================================
--- head/lib/libc/tests/nss/getaddrinfo_test.c Sun May 28 03:39:24 2017 (r319028)
+++ head/lib/libc/tests/nss/getaddrinfo_test.c Sun May 28 03:42:49 2017 (r319029)
@@ -144,7 +144,7 @@ compare_addrinfo(struct addrinfo *ai1, s
return (rv);
}
-void
+static void
free_addrinfo(struct addrinfo *ai)
{
if (ai == NULL)
@@ -409,7 +409,7 @@ addrinfo_read_hostlist_func(struct addri
return (0);
}
-void
+static void
run_tests(char *hostlist_file, char *snapshot_file, int ai_family)
{
struct addrinfo_test_data td, td_snap;
Modified: head/lib/libc/tests/nss/getgr_test.c
==============================================================================
--- head/lib/libc/tests/nss/getgr_test.c Sun May 28 03:39:24 2017 (r319028)
+++ head/lib/libc/tests/nss/getgr_test.c Sun May 28 03:42:49 2017 (r319029)
@@ -49,8 +49,6 @@ enum test_methods {
TEST_BUILD_SNAPSHOT = 16,
};
-static enum test_methods method = TEST_BUILD_SNAPSHOT;
-
DECLARE_TEST_DATA(group)
DECLARE_TEST_FILE_SNAPSHOT(group)
DECLARE_1PASS_TEST(group)
Modified: head/lib/libc/tests/nss/getpw_test.c
==============================================================================
--- head/lib/libc/tests/nss/getpw_test.c Sun May 28 03:39:24 2017 (r319028)
+++ head/lib/libc/tests/nss/getpw_test.c Sun May 28 03:42:49 2017 (r319029)
@@ -47,8 +47,6 @@ enum test_methods {
TEST_BUILD_SNAPSHOT
};
-static enum test_methods method = TEST_BUILD_SNAPSHOT;
-
DECLARE_TEST_DATA(passwd)
DECLARE_TEST_FILE_SNAPSHOT(passwd)
DECLARE_1PASS_TEST(passwd)
Modified: head/lib/libc/tests/nss/getusershell_test.c
==============================================================================
--- head/lib/libc/tests/nss/getusershell_test.c Sun May 28 03:39:24 2017 (r319028)
+++ head/lib/libc/tests/nss/getusershell_test.c Sun May 28 03:42:49 2017 (r319029)
@@ -48,8 +48,6 @@ struct usershell {
char *path;
};
-static enum test_methods method = TEST_GETUSERSHELL;
-
DECLARE_TEST_DATA(usershell)
DECLARE_TEST_FILE_SNAPSHOT(usershell)
DECLARE_2PASS_TEST(usershell)
More information about the svn-src-head
mailing list