[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a const warning under msvc



commit 0558efbd62e0dc5a954cfdaacdd2f48ef9a4abe0
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Dec 18 13:33:15 2012 -0500

    Fix a const warning under msvc
---
 src/common/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index 61d09aa..b0055d6 100644
--- a/src/common/util.c
+++ b/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",



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits