From bf5e625393776b82c6f0d39852b76647716aab27 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 11 Jun 2011 15:25:11 +0200 Subject: s4:torture/ndr/string.c - fix type-punned warning and remove unused variables Reviewed-by: Jelmer --- source4/torture/ndr/string.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/torture') 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, -- cgit