Преглед изворни кода

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)
 #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 *
 static void *

+ 4 - 0
test/private.c

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