shut down warnings

This commit is contained in:
Thomas Bernard 2016-02-26 13:24:39 +01:00
parent 780f20b75c
commit 92fb28284b
2 changed files with 5 additions and 2 deletions

View File

@ -419,7 +419,7 @@ static void upnpc_desc_received(struct evhttp_request * req, void * pvoid)
static void upnpc_subscribe_response(struct evhttp_request * req, void * pvoid) static void upnpc_subscribe_response(struct evhttp_request * req, void * pvoid)
{ {
size_t len; size_t len;
unsigned char * data; /*unsigned char * data;*/
struct evbuffer * input_buffer; struct evbuffer * input_buffer;
upnpc_device_t * d = (upnpc_device_t *)pvoid; upnpc_device_t * d = (upnpc_device_t *)pvoid;
int code; int code;
@ -430,7 +430,7 @@ static void upnpc_subscribe_response(struct evhttp_request * req, void * pvoid)
} }
input_buffer = evhttp_request_get_input_buffer(req); input_buffer = evhttp_request_get_input_buffer(req);
len = evbuffer_get_length(input_buffer); len = evbuffer_get_length(input_buffer);
data = evbuffer_pullup(input_buffer, len); /*data = evbuffer_pullup(input_buffer, len);*/
debug_printf("%s %d (%d bytes)\n", __func__, evhttp_request_get_response_code(req), (int)len); debug_printf("%s %d (%d bytes)\n", __func__, evhttp_request_get_response_code(req), (int)len);
d->state &= ~UPNPC_DEVICE_SOAP_REQ; d->state &= ~UPNPC_DEVICE_SOAP_REQ;
code = evhttp_request_get_response_code(req); code = evhttp_request_get_response_code(req);
@ -454,6 +454,7 @@ static void upnpc_subscribe_response(struct evhttp_request * req, void * pvoid)
static void upnpc_unsubscribe_response(struct evhttp_request * req, void * pvoid) static void upnpc_unsubscribe_response(struct evhttp_request * req, void * pvoid)
{ {
upnpc_device_t * d = (upnpc_device_t *)pvoid; upnpc_device_t * d = (upnpc_device_t *)pvoid;
(void)req;
debug_printf("%s\n", __func__); debug_printf("%s\n", __func__);
if(d->parent->http_server) { if(d->parent->http_server) {

View File

@ -144,6 +144,8 @@ static void event_callback(upnpc_t * p, upnpc_device_t * d, void * data,
/* subscribe callback */ /* subscribe callback */
static void subscribe_callback(int code, upnpc_t * p, upnpc_device_t * d, void * data) static void subscribe_callback(int code, upnpc_t * p, upnpc_device_t * d, void * data)
{ {
(void)p; (void)data;
printf("subscribe_callback(%d)\n", code);
state = EGetStatusInfo; state = EGetStatusInfo;
upnpc_get_status_info(d); upnpc_get_status_info(d);
} }