From 099b0057bed73c3c7a2cf7d0123c8a1daaf53ed0 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 18 Oct 2010 03:50:20 +0300 Subject: asn1_tests.c: Make test data static const --- lib/util/tests/asn1_tests.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/util') diff --git a/lib/util/tests/asn1_tests.c b/lib/util/tests/asn1_tests.c index 25c82227ae..b11e9d5dcf 100644 --- a/lib/util/tests/asn1_tests.c +++ b/lib/util/tests/asn1_tests.c @@ -29,7 +29,7 @@ struct oid_data { }; /* Data for successful OIDs conversions */ -struct oid_data oid_data_ok[] = { +static const struct oid_data oid_data_ok[] = { { .oid = "2.5.4.0", .bin_oid = "550400" @@ -65,7 +65,7 @@ struct oid_data oid_data_ok[] = { }; /* Data for successful Partial OIDs conversions */ -struct oid_data partial_oid_data_ok[] = { +static const struct oid_data partial_oid_data_ok[] = { { .oid = "2.5.4.130:0x81", .bin_oid = "5504810281" @@ -100,7 +100,7 @@ static bool test_ber_write_OID_String(struct torture_context *tctx) char *hex_str; DATA_BLOB blob; TALLOC_CTX *mem_ctx; - struct oid_data *data = oid_data_ok; + const struct oid_data *data = oid_data_ok; mem_ctx = talloc_new(tctx); @@ -129,7 +129,7 @@ static bool test_ber_read_OID_String(struct torture_context *tctx) const char *oid; DATA_BLOB oid_blob; TALLOC_CTX *mem_ctx; - struct oid_data *data = oid_data_ok; + const struct oid_data *data = oid_data_ok; mem_ctx = talloc_new(tctx); @@ -157,7 +157,7 @@ static bool test_ber_write_partial_OID_String(struct torture_context *tctx) char *hex_str; DATA_BLOB blob; TALLOC_CTX *mem_ctx; - struct oid_data *data = oid_data_ok; + const struct oid_data *data = oid_data_ok; mem_ctx = talloc_new(tctx); @@ -202,7 +202,7 @@ static bool test_ber_read_partial_OID_String(struct torture_context *tctx) const char *oid; DATA_BLOB oid_blob; TALLOC_CTX *mem_ctx; - struct oid_data *data = oid_data_ok; + const struct oid_data *data = oid_data_ok; mem_ctx = talloc_new(tctx); -- cgit