Skip to content

Commit 0a94afd

Browse files
committed
Prevent warnings
1 parent 75010ba commit 0a94afd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/http_utils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ const int http_utils::http_gone = MHD_HTTP_GONE;
9090
const int http_utils::http_length_required = MHD_HTTP_LENGTH_REQUIRED;
9191
const int http_utils::http_precondition_failed = MHD_HTTP_PRECONDITION_FAILED;
9292
const int http_utils::http_request_entity_too_large =
93-
MHD_HTTP_REQUEST_ENTITY_TOO_LARGE;
94-
const int http_utils::http_request_uri_too_long = MHD_HTTP_REQUEST_URI_TOO_LONG;
93+
MHD_HTTP_PAYLOAD_TOO_LARGE;
94+
const int http_utils::http_request_uri_too_long = MHD_HTTP_URI_TOO_LONG;
9595
const int http_utils::http_unsupported_media_type =
9696
MHD_HTTP_UNSUPPORTED_MEDIA_TYPE;
9797
const int http_utils::http_requested_range_not_satisfiable =
98-
MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE;
98+
MHD_HTTP_RANGE_NOT_SATISFIABLE;
9999
const int http_utils::http_expectation_failed = MHD_HTTP_EXPECTATION_FAILED;
100100
const int http_utils::http_unprocessable_entity = MHD_HTTP_UNPROCESSABLE_ENTITY;
101101
const int http_utils::http_locked = MHD_HTTP_LOCKED;
@@ -355,7 +355,7 @@ ip_representation::ip_representation(const std::string& ip)
355355
throw std::invalid_argument("IP is badly formatted. Max 8 parts in IPV6.");
356356
}
357357

358-
int omitted = 8 - (parts.size() - 1);
358+
unsigned int omitted = 8 - (parts.size() - 1);
359359
if (omitted != 0)
360360
{
361361
int empty_count = 0;
@@ -416,7 +416,7 @@ ip_representation::ip_representation(const std::string& ip)
416416
y += 2;
417417
}
418418
else
419-
{
419+
{
420420
if(parts[i].find('.') != std::string::npos)
421421
{
422422
if(y != 12)

0 commit comments

Comments
 (0)