Fixed compile warnings under windows
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 9 Jul 2010 15:34:27 +0000 (15:34 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 9 Jul 2010 15:34:27 +0000 (15:34 +0000)
src/util/os_priority.c

index 0200a473853aa2936d7b2116f4146c9d06ff69a8..9384fec118c49ea0d56f1ff7997307ea0cc9f348 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;
@@ -630,7 +630,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);