proper casting for conversion

svn:r343
This commit is contained in:
Niels Provos 2007-03-03 08:18:20 +00:00
parent 74f7118d66
commit 660662517c

View File

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