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); \