瀏覽代碼

Minor changes in `private.c` unit test suite

bel 8 年之前
父節點
當前提交
e147214e21
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 2 2
      src/civetweb.c
  2. 4 0
      test/private.c

+ 2 - 2
src/civetweb.c

@@ -849,8 +849,8 @@ DEBUG_TRACE_FUNC(const char *func, unsigned line, const char *fmt, ...)
 
 
 #if defined(MEMORY_DEBUGGING)
-unsigned long mg_memory_debug_blockCount = 0;
-unsigned long mg_memory_debug_totalMemUsed = 0;
+static unsigned long mg_memory_debug_blockCount = 0;
+static unsigned long mg_memory_debug_totalMemUsed = 0;
 
 
 static void *

+ 4 - 0
test/private.c

@@ -808,6 +808,10 @@ MAIN_PRIVATE(void)
 	test_parse_port_string(0);
 	test_parse_http_message(0);
 	test_sha1(0);
+
+#if defined(_WIN32)
+    WSACleanup();
+#endif
 }
 
 #endif