git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d057ca3
)
asn1_tests.c: Make test data static const
author
Kamen Mazdrashki
<kamenim@samba.org>
Mon, 18 Oct 2010 00:50:20 +0000
(
03:50
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 20 Oct 2010 13:12:17 +0000
(13:12 +0000)
lib/util/tests/asn1_tests.c
patch
|
blob
|
history
diff --git
a/lib/util/tests/asn1_tests.c
b/lib/util/tests/asn1_tests.c
index 25c82227aec28631290623a35df2eee906033878..b11e9d5dcf202bd28c80435f38d2987e12f57209 100644
(file)
--- 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 */
};
/* Data for successful OIDs conversions */
-struct oid_data oid_data_ok[] = {
+st
atic const st
ruct oid_data oid_data_ok[] = {
{
.oid = "2.5.4.0",
.bin_oid = "550400"
{
.oid = "2.5.4.0",
.bin_oid = "550400"
@@
-65,7
+65,7
@@
struct oid_data oid_data_ok[] = {
};
/* Data for successful Partial OIDs conversions */
};
/* Data for successful Partial OIDs conversions */
-struct oid_data partial_oid_data_ok[] = {
+st
atic const st
ruct oid_data partial_oid_data_ok[] = {
{
.oid = "2.5.4.130:0x81",
.bin_oid = "5504810281"
{
.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;
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);
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;
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);
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;
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);
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;
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);
mem_ctx = talloc_new(tctx);