Staticize functions and remove unused variables to aid with bumping WARNS

MFC after:	3 days
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-05-28 03:42:49 +00:00
parent ae8cdfddc3
commit bd874c6a7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319029
4 changed files with 2 additions and 8 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)

View File

@ -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)