summaryrefslogtreecommitdiff
path: root/lib/util/tests
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-10-18 03:50:20 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-10-20 13:12:17 +0000
commit099b0057bed73c3c7a2cf7d0123c8a1daaf53ed0 (patch)
tree775fe0a9a40eed5c08d1aed5dd7ca54937bb85fe /lib/util/tests
parentd057ca3e3fba8190030929cbd41ef9a61440a78c (diff)
downloadsamba-099b0057bed73c3c7a2cf7d0123c8a1daaf53ed0.tar.gz
samba-099b0057bed73c3c7a2cf7d0123c8a1daaf53ed0.tar.bz2
samba-099b0057bed73c3c7a2cf7d0123c8a1daaf53ed0.zip
asn1_tests.c: Make test data static const
Diffstat (limited to 'lib/util/tests')
-rw-r--r--lib/util/tests/asn1_tests.c12
1 files changed, 6 insertions, 6 deletions
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);