summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-22 10:17:35 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-22 10:17:35 +1100
commitc9838f0e135dc8d1aa46eb86e6fbc8a82c4ada3a (patch)
tree7e7e3233382bce0bd4d3861020da3035bac062b3
parent60ec0f1ae7e3efc65cce3abc1c56138e09473fcf (diff)
downloadsamba-c9838f0e135dc8d1aa46eb86e6fbc8a82c4ada3a.tar.gz
samba-c9838f0e135dc8d1aa46eb86e6fbc8a82c4ada3a.tar.bz2
samba-c9838f0e135dc8d1aa46eb86e6fbc8a82c4ada3a.zip
s4:torture Silence const warning by use of data_blob_const()
This was inspired by one of mdw's const patches Andrew Bartlett
-rw-r--r--source4/torture/ldb/ldb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c
index 23c9bb2333..f986372fe9 100644
--- a/source4/torture/ldb/ldb.c
+++ b/source4/torture/ldb/ldb.c
@@ -665,8 +665,7 @@ static bool torture_ldb_dn(struct torture_context *torture)
ldb_dn_validate(dn) == false,
"should have failed to validate a DN with 0xA in it");
- val.data = "CN=Zer\0,DC=SAMBA,DC=org";
- val.length = 23;
+ val = data_blob_const("CN=Zer\0,DC=SAMBA,DC=org", 23);
torture_assert(torture,
NULL == ldb_dn_from_ldb_val(mem_ctx, ldb, &val),
"should fail to create a DN with 0x0 in it");