git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a1e13
)
s4:torture/ndr/string.c - fix type-punned warning and remove unused variables
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sat, 11 Jun 2011 13:25:11 +0000
(15:25 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sat, 11 Jun 2011 14:26:18 +0000
(16:26 +0200)
Reviewed-by: Jelmer
source4/torture/ndr/string.c
patch
|
blob
|
history
diff --git
a/source4/torture/ndr/string.c
b/source4/torture/ndr/string.c
index 9214b59295726284f9f6d6c7023019b0eac97ff4..30ed1e4d1a0295cd9d70cfe20cb5adc09be2e903 100644
(file)
--- 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,