dhtlog updates
[oweals/gnunet.git] / src / util / os_priority.c
index 0200a473853aa2936d7b2116f4146c9d06ff69a8..92286a37ba1b015957642093556e3947e2faaa8a 100644 (file)
@@ -47,6 +47,7 @@ ChildWaitThread (HANDLE h)
     w32_sigchld_handler ();
 
   CloseHandle (h);
+  return 0;
 }
 #endif
 
@@ -260,8 +261,7 @@ GNUNET_OS_start_process (struct GNUNET_DISK_PipeHandle *pipe_stdin,
   HANDLE stdin_handle;
   HANDLE stdout_handle;
 #endif
-  char *fn;
-  int len;
+  char *fn = NULL;
   char path[MAX_PATH + 1];
 
   cmdlen = 0;
@@ -391,6 +391,7 @@ GNUNET_OS_start_process_v (const int *lsocks,
           sleep (1);
 #endif
         }
+      GNUNET_array_grow (lscp, ls, 0);
       return ret;
     }
   if (lscp != NULL)
@@ -630,7 +631,6 @@ GNUNET_OS_process_wait (pid_t proc)
   return GNUNET_OK;
 #else
   HANDLE h;
-  DWORD c;
   int ret;
 
   h = OpenProcess (PROCESS_QUERY_INFORMATION, FALSE, proc);