From 660662517c717b53d7340ed0198bffbe154ef0b1 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 3 Mar 2007 08:18:20 +0000 Subject: [PATCH] proper casting for conversion svn:r343 --- evrpc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evrpc.h b/evrpc.h index 899c29d7..86ea933c 100644 --- a/evrpc.h +++ b/evrpc.h @@ -152,7 +152,8 @@ int evrpc_send_request_##rpcname(struct evrpc_pool *pool, \ void (*cb)(struct reqstruct *, struct rplystruct *, void *cbarg), \ void *cbarg) { \ struct evrpc_request_wrapper *ctx; \ - ctx = malloc(sizeof(struct evrpc_request_wrapper)); \ + ctx = (struct evrpc_request_wrapper *) \ + malloc(sizeof(struct evrpc_request_wrapper)); \ if (ctx == NULL) { \ (*(cb))(request, reply, cbarg); \ return (-1); \