summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-22 18:13:58 +0100
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-22 18:13:58 +0100
commitf46f6aabb4da8d7c185bf46cb05a9469ca1f11df (patch)
tree2129372187cd47f54fb41bf0e71337ac3a399c48 /src/common/util.c
parenta78ffd9e45a270b9979dcdc0d376f33bd95d7f09 (diff)
downloadtor-f46f6aabb4da8d7c185bf46cb05a9469ca1f11df.tar.gz
tor-f46f6aabb4da8d7c185bf46cb05a9469ca1f11df.zip
Fix some compiler warnings
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 517cc3e499..48e48ce813 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3058,6 +3058,9 @@ tor_spawn_background(const char *const filename, const char **argv)
HANDLE stderr_pipe_read = NULL;
HANDLE stderr_pipe_write = NULL;
+ STARTUPINFO siStartInfo;
+ BOOL retval = FALSE;
+
SECURITY_ATTRIBUTES saAttr;
smartlist_t *argv_list;
char *joined_argv;
@@ -3105,9 +3108,6 @@ tor_spawn_background(const char *const filename, const char **argv)
joined_argv = smartlist_join_strings(argv_list, " ", 0, NULL);
- STARTUPINFO siStartInfo;
- BOOL retval = FALSE;
-
ZeroMemory(&process_handle.pid, sizeof(PROCESS_INFORMATION));
ZeroMemory(&siStartInfo, sizeof(STARTUPINFO));
siStartInfo.cb = sizeof(STARTUPINFO);
@@ -3592,7 +3592,7 @@ tor_check_port_forwarding(const char *filename, int dir_port, int or_port,
#define TIME_TO_EXEC_FWHELPER_FAIL 60
#ifdef MS_WINDOWS
- static process_handle_t child_handle = {0, NULL, NULL, {NULL}};
+ static process_handle_t child_handle = {0, NULL, NULL, {NULL, NULL, 0, 0}};
#else
static process_handle_t child_handle;
#endif