dhtlog updates
[oweals/gnunet.git] / src / util / os_priority.c
index 7a6f0d65d1ae0b2c585f58daf52d750ed81b8325..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;
@@ -295,7 +295,7 @@ GNUNET_OS_start_process (struct GNUNET_DISK_PipeHandle *pipe_stdin,
       start.hStdOutput = stdout_handle;
     }
 #endif
-  if (FindExecutable(filename, NULL, path) <= 32)
+  if ((int) FindExecutable(filename, NULL, path) <= 32) 
     {
       SetErrnoFromWinError (GetLastError ());
       GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "FindExecutable", fn);
@@ -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);