From: Niels Provos Date: Sat, 3 Mar 2007 08:18:20 +0000 (+0000) Subject: proper casting for conversion X-Git-Tag: release-2.0.1-alpha~635 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=660662517c717b53d7340ed0198bffbe154ef0b1;p=libevent proper casting for conversion svn:r343 --- 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); \