소스 검색

fix signed/unsigned mismatch warning

bel 11 년 전
부모
커밋
07ec21edbb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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