[tor-commits] [tor/master] Remove (void)envp from tor_spawn_background

nickm at torproject.org nickm at torproject.org
Fri Feb 17 16:46:49 UTC 2012


commit ee3a49d6ed157b0d27a31f527bc5a55d0b2dad9d
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Mon Feb 13 00:47:54 2012 -0800

    Remove (void)envp from tor_spawn_background
    
    The envp argument is used on Windows.
---
 src/common/util.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index c8af602..ac65f48 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3334,8 +3334,6 @@ tor_spawn_background(const char *const filename, const char **argv,
   SECURITY_ATTRIBUTES saAttr;
   char *joined_argv;
 
-  (void)envp; // Unused on Windows
-
   saAttr.nLength = sizeof(SECURITY_ATTRIBUTES);
   saAttr.bInheritHandle = TRUE;
   /* TODO: should we set explicit security attributes? (#2046, comment 5) */





More information about the tor-commits mailing list