Explorar o código

Fix a const warning under msvc

Nick Mathewson %!s(int64=11) %!d(string=hai) anos
pai
achega
0558efbd62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -4919,7 +4919,7 @@ tor_check_port_forwarding(const char *filename,
     status = tor_spawn_background(filename, argv, NULL, &child_handle);
 #endif
 
-    tor_free(argv);
+    tor_free((void*)argv);
 
     if (PROCESS_STATUS_ERROR == status) {
       log_warn(LD_GENERAL, "Failed to start port forwarding helper %s",