dnsapi/tests: Constify a character string
Frédéric Delanoy
frederic.delanoy at gmail.com
Sat Dec 21 07:32:22 CST 2013
---
dlls/dnsapi/tests/name.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/dnsapi/tests/name.c b/dlls/dnsapi/tests/name.c
index 2872c35..fba6955 100644
--- a/dlls/dnsapi/tests/name.c
+++ b/dlls/dnsapi/tests/name.c
@@ -154,22 +154,22 @@ static void test_DnsValidateName_A( void )
static void test_DnsNameCompare_A( void )
{
- static CHAR empty[] = "",
- dot[] = ".",
- dotdot[] = "..",
- A[] = "A",
- a[] = "a",
- B[] = "B",
- b[] = "b",
- A_dot_B[] = "A.B",
- a_dot_a[] = "a.a",
- a_dot_b[] = "a.b",
- a_dot_b_dot[] = "a.b.",
- a_dot_b_dotdot[] = "a.b..",
- B_dot_A[] = "B.A",
- b_dot_a[] = "b.a",
- b_dot_a_dot[] = "b.a.",
- b_dot_a_dotdot[] = "b.a..";
+ static const CHAR empty[] = "",
+ dot[] = ".",
+ dotdot[] = "..",
+ A[] = "A",
+ a[] = "a",
+ B[] = "B",
+ b[] = "b",
+ A_dot_B[] = "A.B",
+ a_dot_a[] = "a.a",
+ a_dot_b[] = "a.b",
+ a_dot_b_dot[] = "a.b.",
+ a_dot_b_dotdot[] = "a.b..",
+ B_dot_A[] = "B.A",
+ b_dot_a[] = "b.a",
+ b_dot_a_dot[] = "b.a.",
+ b_dot_a_dotdot[] = "b.a..";
ok( DnsNameCompare_A( NULL, NULL ) == TRUE, "failed unexpectedly\n" );
--
1.8.5.2
More information about the wine-patches
mailing list