From 170df7b676449ca75bd875e44c6cf99b60390912 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Mon, 27 Jan 2014 11:08:32 +0000
Subject: [PATCH] local and remote port made unsigned short

---
 mongoose.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mongoose.h b/mongoose.h
index f15543269..9ba5afe9f 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -37,9 +37,9 @@ struct mg_connection {
   const char *query_string;   // URL part after '?', not including '?', or NULL
 
   char remote_ip[48];         // Max IPv6 string length is 45 characters
-  int remote_port;            // Client's port
   const char *local_ip;       // Local IP address
-  int local_port;             // Local port number
+  unsigned short remote_port; // Client's port
+  unsigned short local_port;  // Local port number
 
   int num_headers;            // Number of HTTP headers
   struct mg_header {
-- 
GitLab