Explorar o código

Minor changes in `private.c` unit test suite

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
e147214e21
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  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