summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-11 15:25:11 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-11 16:26:18 +0200
commitbf5e625393776b82c6f0d39852b76647716aab27 (patch)
treea4f41dfd3d6203c9435dcbd935c82949d7397b7c /source4/torture/ndr
parent62a1e13b294d26f44d764810344ead5b58b8eb53 (diff)
downloadsamba-bf5e625393776b82c6f0d39852b76647716aab27.tar.gz
samba-bf5e625393776b82c6f0d39852b76647716aab27.tar.bz2
samba-bf5e625393776b82c6f0d39852b76647716aab27.zip
s4:torture/ndr/string.c - fix type-punned warning and remove unused variables
Reviewed-by: Jelmer
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,