summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1621.c2
-rw-r--r--tests/unit/unit1650.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/unit1621.c b/tests/unit/unit1621.c
index ec361dfbf..19b1e513e 100644
--- a/tests/unit/unit1621.c
+++ b/tests/unit/unit1621.c
@@ -52,7 +52,7 @@ struct checkthis {
const char *output;
};
-static struct checkthis tests[] = {
+static const struct checkthis tests[] = {
{ "ninja://foo@example.com", "ninja://foo@example.com" },
{ "https://foo@example.com", "https://example.com/" },
{ "https://localhost:45", "https://localhost:45/" },
diff --git a/tests/unit/unit1650.c b/tests/unit/unit1650.c
index de54c0841..301733469 100644
--- a/tests/unit/unit1650.c
+++ b/tests/unit/unit1650.c
@@ -59,7 +59,7 @@ struct dohrequest {
};
-static struct dohrequest req[] = {
+static const struct dohrequest req[] = {
{"test.host.name", DNS_TYPE_A, DNS_Q1, sizeof(DNS_Q1)-1, 0 },
{"test.host.name", DNS_TYPE_AAAA, DNS_Q2, sizeof(DNS_Q2)-1, 0 },
{"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
@@ -86,7 +86,7 @@ struct dohresp {
static const char full49[] = DNS_FOO_EXAMPLE_COM;
-static struct dohresp resp[] = {
+static const struct dohresp resp[] = {
{"\x00\x00", 2, DNS_TYPE_A, DOH_TOO_SMALL_BUFFER, NULL },
{"\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01", 12,
DNS_TYPE_A, DOH_DNS_BAD_ID, NULL },