diff --git a/miniupnpc-libevent/miniupnpc-libevent.c b/miniupnpc-libevent/miniupnpc-libevent.c index 9c8df67..de9abb1 100644 --- a/miniupnpc-libevent/miniupnpc-libevent.c +++ b/miniupnpc-libevent/miniupnpc-libevent.c @@ -653,7 +653,7 @@ static int upnpc_send_soap_request(upnpc_device_t * p, const char * url, #ifdef ENABLE_UPNP_EVENTS #define EVHTTP_REQ_NOTIFY ((EVHTTP_REQ_MAX) << 1) #define EVHTTP_REQ_SUBSCRIBE ((EVHTTP_REQ_NOTIFY) << 1) -static const struct evhttp_extended_methods ext_methods[] = { +static const struct evhttp_extended_method ext_methods[] = { {"NOTIFY", EVHTTP_REQ_NOTIFY, EVHTTP_METHOD_HAS_BODY}, {"SUBSCRIBE", EVHTTP_REQ_SUBSCRIBE, EVHTTP_METHOD_HAS_BODY}, {NULL, 0, 0} diff --git a/miniupnpc-libevent/upnpc-libevent.c b/miniupnpc-libevent/upnpc-libevent.c index ce545a9..ce6ec4a 100644 --- a/miniupnpc-libevent/upnpc-libevent.c +++ b/miniupnpc-libevent/upnpc-libevent.c @@ -131,6 +131,7 @@ static void soap(int code, upnpc_t * p, upnpc_device_t * d, void * data) static void event_callback(upnpc_t * p, upnpc_device_t * d, void * data, const char * service_id, const char * property_name, const char * property_value) { + (void)p; (void)d; (void)data; printf("PROPERTY VALUE CHANGE (service=%s): %s=%s\n", service_id, property_name, property_value); } #endif /* ENABLE_UPNP_EVENTS */