rpc: use *_new_with_arg() to match function prototype
authorAzat Khuzhin <azat@libevent.org>
Fri, 11 Jan 2019 18:52:11 +0000 (21:52 +0300)
committerAzat Khuzhin <azat@libevent.org>
Fri, 11 Jan 2019 18:53:07 +0000 (21:53 +0300)
In 755fbf16c ("Add void* arguments to request_new and reply_new
evrpc hooks") this new functions had been introduced, but newer used,
what for? So let's use them.

include/event2/rpc.h

index e7ada0b614e26768f34d14c1624c7ecca2c54eb5..1bc31d57117eae99bfc8f78dc32b7e29d00c9989 100644 (file)
@@ -330,10 +330,10 @@ void evrpc_free(struct evrpc_base *base);
 #define EVRPC_REGISTER(base, name, request, reply, callback, cbarg)    \
        evrpc_register_generic(base, #name,                             \
            (void (*)(struct evrpc_req_generic *, void *))callback, cbarg, \
-           (void *(*)(void *))request##_new, NULL,                     \
+           (void *(*)(void *))request##_new_with_arg, NULL,            \
            (void (*)(void *))request##_free,                           \
            (int (*)(void *, struct evbuffer *))request##_unmarshal,    \
-           (void *(*)(void *))reply##_new, NULL,                       \
+           (void *(*)(void *))reply##_new_with_arg, NULL,              \
            (void (*)(void *))reply##_free, \
            (int (*)(void *))reply##_complete, \
            (void (*)(struct evbuffer *, void *))reply##_marshal)