Skip to content

Commit 0ae88e0

Browse files
author
Sebastiano Merlino
committed
Solved unused value warning
1 parent bd612a6 commit 0ae88e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Webserver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ int Webserver::answerToConnection(void* cls, MHD_Connection* connection,
571571
{
572572
struct MHD_Response *response;
573573
struct ModdedRequest *mr;
574-
int ret;
575574
HttpRequest supportReq;
576575
Webserver* dws = (Webserver*)(cls);
577576
internal_unescaper(cls, (char*) url);
@@ -755,7 +754,7 @@ int Webserver::answerToConnection(void* cls, MHD_Connection* connection,
755754
MHD_add_response_header(response, (*it).first.c_str(), (*it).second.c_str());
756755
for (it=response_footers.begin() ; it != response_footers.end(); it++)
757756
MHD_add_response_footer(response, (*it).first.c_str(), (*it).second.c_str());
758-
ret = MHD_queue_response(connection, dhrs.getResponseCode(), response);
757+
MHD_queue_response(connection, dhrs.getResponseCode(), response);
759758

760759
if (user != 0x0)
761760
free (user);

0 commit comments

Comments
 (0)