summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/tests
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-01 00:02:17 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-01 00:17:20 +0100
commit96f176dbd84090fd18b8c796f869ddaa2da39e59 (patch)
treef9f4020f1f2e51f1cdef924fc64b92cf270921ce /source4/lib/messaging/tests
parentf3f2dfc51a25080290e13ed1d1f8c85932e0be31 (diff)
downloadsamba-96f176dbd84090fd18b8c796f869ddaa2da39e59.tar.gz
samba-96f176dbd84090fd18b8c796f869ddaa2da39e59.tar.bz2
samba-96f176dbd84090fd18b8c796f869ddaa2da39e59.zip
s4:lib/messaging: fix warnings in testsuite
metze
Diffstat (limited to 'source4/lib/messaging/tests')
-rw-r--r--source4/lib/messaging/tests/irpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/messaging/tests/irpc.c b/source4/lib/messaging/tests/irpc.c
index 5d49438c5c..42a811d116 100644
--- a/source4/lib/messaging/tests/irpc.c
+++ b/source4/lib/messaging/tests/irpc.c
@@ -87,7 +87,7 @@ static bool test_addone(struct torture_context *test, const void *_data,
struct echo_AddOne r;
NTSTATUS status;
const struct irpc_test_data *data = (const struct irpc_test_data *)_data;
- uint32_t value = (uint32_t)_value;
+ uint32_t value = *(const uint32_t *)_value;
/* make the call */
r.in.in_data = value;
@@ -261,7 +261,7 @@ struct torture_suite *torture_local_irpc(TALLOC_CTX *mem_ctx)
for (i = 0; i < 5; i++) {
torture_tcase_add_test_const(tcase, "addone", test_addone,
- (void *)values[i]);
+ (void *)&values[i]);
}
torture_tcase_add_test_const(tcase, "echodata", test_echodata, NULL);