Skip to content

Commit

Permalink
static scope
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Dec 27, 2024
1 parent 171c1f1 commit ee16733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/ares-test-mock-ai.cc
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ class ContainedMockChannelAISysConfig
: MockChannelOptsTest(1, GetParam().first, GetParam().second, true, nullptr, 0) {}
};

NameContentList files_no_ndots = {
static NameContentList files_no_ndots = {
{"/etc/resolv.conf", "nameserver 1.2.3.4\n" // Will be replaced
"search example.com example.org\n"
"options edns0 trust-ad\n"}, // ndots:1 is default
Expand Down Expand Up @@ -1046,7 +1046,7 @@ CONTAINED_TEST_P(ContainedMockChannelAISysConfig, NoHostsLocalHostUnspec,

/* Issue #946 says if a v4 localhost entry exists, but not a v6 entry, v6
* isn't output correctly. */
NameContentList files_localhost_v4localhostonly = {
static NameContentList files_localhost_v4localhostonly = {
{"/etc/resolv.conf", "nameserver 1.2.3.4\n" // Will be replaced
"search example.com example.org\n"
"options edns0 trust-ad\n"}, // ndots:1 is default
Expand Down
4 changes: 2 additions & 2 deletions test/ares-test-mock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class ContainedMockChannelSysConfig
: MockChannelOptsTest(1, GetParam().first, GetParam().second, true, nullptr, 0) {}
};

NameContentList files_no_ndots = {
static NameContentList files_no_ndots = {
{"/etc/resolv.conf", "nameserver 1.2.3.4\n" // Will be replaced
"search example.com example.org\n"
"options edns0 trust-ad\n"}, // ndots:1 is default
Expand All @@ -876,7 +876,7 @@ CONTAINED_TEST_P(ContainedMockChannelSysConfig, SysConfigNdotsDefault,
}


NameContentList files_ndots0 = {
static NameContentList files_ndots0 = {
{"/etc/resolv.conf", "nameserver 1.2.3.4\n" // Will be replaced
"search example.com example.org\n"
"options edns0 trust-ad ndots:0\n"}, // ndots:1 is default
Expand Down

0 comments on commit ee16733

Please sign in to comment.