s4:lib/messaging/tests: fix some compiler warnings
authorStefan Metzmacher <metze@samba.org>
Fri, 3 Sep 2010 13:42:28 +0000 (15:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 3 Sep 2010 15:00:17 +0000 (17:00 +0200)
metze

source4/lib/messaging/tests/irpc.c

index 44a116af1ffe56f7d8a9abb6ff38ea32eb2d9fe6..97148f35e0503f83a591ac168a942deb34f06573 100644 (file)
@@ -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);
        }