]> granicus.if.org Git - libevent/commitdiff
proper casting for conversion
authorNiels Provos <provos@gmail.com>
Sat, 3 Mar 2007 08:18:20 +0000 (08:18 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 3 Mar 2007 08:18:20 +0000 (08:18 +0000)
svn:r343

evrpc.h

diff --git a/evrpc.h b/evrpc.h
index 899c29d76bd97203ad127cc72028b5b640005f58..86ea933ca6ca3f05aa049acaca7abfde636fa192 100644 (file)
--- 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);                                        \