From 5bb361b1d23891b7cb0ed524266df249d42b2bbe Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Thu, 12 Sep 2013 10:03:04 +0100
Subject: [PATCH] Squashed warnings

---
 build/mod_lua.c | 3 +--
 mongoose.c      | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build/mod_lua.c b/build/mod_lua.c
index de72c4398..93f059846 100644
--- a/build/mod_lua.c
+++ b/build/mod_lua.c
@@ -344,10 +344,9 @@ static void lsp_send_err(struct mg_connection *conn, struct lua_State *L,
                          const char *fmt, ...) {
   char buf[MG_BUF_LEN];
   va_list ap;
-  int len;
 
   va_start(ap, fmt);
-  len = vsnprintf(buf, sizeof(buf), fmt, ap);
+  vsnprintf(buf, sizeof(buf), fmt, ap);
   va_end(ap);
 
   if (L == NULL) {
diff --git a/mongoose.c b/mongoose.c
index cc7d4a485..af7a68033 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -4552,7 +4552,8 @@ static int is_valid_port(unsigned int port) {
 // Examples: 80, 443s, 127.0.0.1:3128, 1.2.3.4:8080s
 // TODO(lsm): add parsing of the IPv6 address
 static int parse_port_string(const struct vec *vec, struct socket *so) {
-  unsigned int a, b, c, d, ch, len, port;
+  unsigned int a, b, c, d, ch, port;
+  int len;
 #if defined(USE_IPV6)
   char buf[100];
 #endif
-- 
GitLab