git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
705f4c2
)
s4:lib/messaging/tests: fix some compiler warnings
author
Stefan Metzmacher
<metze@samba.org>
Fri, 3 Sep 2010 13:42:28 +0000
(15:42 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 3 Sep 2010 15:00:17 +0000
(17:00 +0200)
metze
source4/lib/messaging/tests/irpc.c
patch
|
blob
|
history
diff --git
a/source4/lib/messaging/tests/irpc.c
b/source4/lib/messaging/tests/irpc.c
index 44a116af1ffe56f7d8a9abb6ff38ea32eb2d9fe6..97148f35e0503f83a591ac168a942deb34f06573 100644
(file)
--- a/
source4/lib/messaging/tests/irpc.c
+++ b/
source4/lib/messaging/tests/irpc.c
@@
-57,8
+57,8
@@
static void deferred_echodata(struct tevent_context *ev, struct tevent_timer *te
struct timeval t, void *private_data)
{
struct irpc_message *irpc = talloc_get_type(private_data, struct irpc_message);
- struct echo_EchoData *r = irpc->data;
- r->out.out_data = talloc_memdup(r, r->in.in_data, r->in.len);
+ struct echo_EchoData *r =
(struct echo_EchoData *)
irpc->data;
+ r->out.out_data =
(uint8_t *)
talloc_memdup(r, r->in.in_data, r->in.len);
if (r->out.out_data == NULL) {
irpc_send_reply(irpc, NT_STATUS_NO_MEMORY);
}