mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
proper casting for conversion
svn:r343
This commit is contained in:
parent
74f7118d66
commit
660662517c
3
evrpc.h
3
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); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user