]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove (void)envp from tor_spawn_background
authorRobert Ransom <rransom.8774@gmail.com>
Mon, 13 Feb 2012 08:47:54 +0000 (00:47 -0800)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Feb 2012 16:42:20 +0000 (11:42 -0500)
The envp argument is used on Windows.

src/common/util.c

index c8af6029ec3f43789af1f62462df28a6ce452acf..ac65f48afbd5201fac6d7be96eab87318eea9af3 100644 (file)
@@ -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) */