From bd874c6a7f3afd84a723c291a9b30e96dae785b0 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 28 May 2017 03:42:49 +0000 Subject: [PATCH] Staticize functions and remove unused variables to aid with bumping WARNS MFC after: 3 days Sponsored by: Dell EMC Isilon --- lib/libc/tests/nss/getaddrinfo_test.c | 4 ++-- lib/libc/tests/nss/getgr_test.c | 2 -- lib/libc/tests/nss/getpw_test.c | 2 -- lib/libc/tests/nss/getusershell_test.c | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/libc/tests/nss/getaddrinfo_test.c b/lib/libc/tests/nss/getaddrinfo_test.c index 0c9704fe366d..67eccb2094e9 100644 --- a/lib/libc/tests/nss/getaddrinfo_test.c +++ b/lib/libc/tests/nss/getaddrinfo_test.c @@ -144,7 +144,7 @@ compare_addrinfo(struct addrinfo *ai1, struct addrinfo *ai2, void *mdata) return (rv); } -void +static void free_addrinfo(struct addrinfo *ai) { if (ai == NULL) @@ -409,7 +409,7 @@ addrinfo_read_hostlist_func(struct addrinfo *ai, char *line) return (0); } -void +static void run_tests(char *hostlist_file, char *snapshot_file, int ai_family) { struct addrinfo_test_data td, td_snap; diff --git a/lib/libc/tests/nss/getgr_test.c b/lib/libc/tests/nss/getgr_test.c index 64269123b2b0..5e167b33c069 100644 --- a/lib/libc/tests/nss/getgr_test.c +++ b/lib/libc/tests/nss/getgr_test.c @@ -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) diff --git a/lib/libc/tests/nss/getpw_test.c b/lib/libc/tests/nss/getpw_test.c index 98f890ff7313..0bdbf7087e5f 100644 --- a/lib/libc/tests/nss/getpw_test.c +++ b/lib/libc/tests/nss/getpw_test.c @@ -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) diff --git a/lib/libc/tests/nss/getusershell_test.c b/lib/libc/tests/nss/getusershell_test.c index ccd8cf96a6ed..04eabf6f50d7 100644 --- a/lib/libc/tests/nss/getusershell_test.c +++ b/lib/libc/tests/nss/getusershell_test.c @@ -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)