summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r--source4/torture/ndr/string.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/ndr/string.c b/source4/torture/ndr/string.c
index 9214b59295..30ed1e4d1a 100644
--- a/source4/torture/ndr/string.c
+++ b/source4/torture/ndr/string.c
@@ -51,7 +51,8 @@ test_ndr_push_string (struct torture_context *tctx, const char *string,
torture_assert(tctx, ndr->data != NULL,
"ndr_push_string: succeeded but NULL data");
- torture_assert(tctx, strcmp_pass == !strcmp(string, ndr->data),
+ torture_assert(tctx,
+ strcmp_pass == !strcmp(string, (char *)ndr->data),
"ndr_push_string: post-push strcmp");
}
@@ -104,8 +105,6 @@ test_ndr_pull_string (struct torture_context *tctx, const char *string,
static bool
torture_ndr_string(struct torture_context *torture)
{
- bool ok;
- int i;
const char *saved_dos_cp = lpcfg_dos_charset(torture->lp_ctx);
torture_assert(torture,