Explorar o código

fix signed/unsigned mismatch warning

bel %!s(int64=11) %!d(string=hai) anos
pai
achega
07ec21edbb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -5605,7 +5605,8 @@ static int is_valid_port(unsigned int port)
    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, port;
+    int  ch, len;
 #if defined(USE_IPV6)
     char buf[100];
 #endif