Skip to content

Commit

Permalink
Fix unused-but-set-variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergarage committed Jan 2, 2025
1 parent 92b47dd commit 5d1a576
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/TestDevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,26 +207,23 @@ bool upnp_test_queryreceived(mUpnpStateVariable* statVar)

void upnp_test_device_httprequestrecieved(mUpnpHttpRequest* httpReq)
{
mUpnpTime currTime;
mUpnpDevice* dev;
// mUpnpTime currTime;
// mUpnpDevice* dev;
char* uri;
char content[2048];
/*
char sysTimeStr[SYSTEM_TIME_BUF_LEN];
char serverName[MUPNP_SEVERNAME_MAXLEN];
*/
// char sysTimeStr[SYSTEM_TIME_BUF_LEN];
// char serverName[MUPNP_SEVERNAME_MAXLEN];
mUpnpHttpResponse* httpRes;
bool postRet;

dev = (mUpnpDevice*)mupnp_http_request_getuserdata(httpReq);
// dev = (mUpnpDevice*)mupnp_http_request_getuserdata(httpReq);

uri = mupnp_http_request_geturi(httpReq);
if (strcmp(uri, "/presentation") != 0) {
mupnp_device_httprequestrecieved(httpReq);
return;
}

currTime = mupnp_getcurrentsystemtime();
// currTime = mupnp_getcurrentsystemtime();

/*
#if defined(HAVE_SNPRINTF)
Expand Down Expand Up @@ -278,7 +275,7 @@ void upnp_test_device_httprequestrecieved(mUpnpHttpRequest* httpReq)
mupnp_http_response_setcontent(httpRes, content);
mupnp_http_response_setcontenttype(httpRes, "text/html");
mupnp_http_response_setcontentlength(httpRes, strlen(content));
postRet = mupnp_http_request_postresponse(httpReq, httpRes);
mupnp_http_request_postresponse(httpReq, httpRes);
mupnp_http_response_delete(httpRes);
}

Expand Down

0 comments on commit 5d1a576

Please sign in to comment.