From dc24b5bf44bf8d9460b2571fe529403637aa3e16 Mon Sep 17 00:00:00 2001 From: Nils Durner Date: Fri, 8 Oct 2010 17:55:16 +0000 Subject: [PATCH] fix warnings --- src/util/os_priority.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 109b862e2..604b3d532 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -299,7 +299,7 @@ GNUNET_OS_start_process (struct GNUNET_DISK_PipeHandle *pipe_stdin, { SetErrnoFromWinError (GetLastError ()); GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "FindExecutable", filename); - return -1; + return (pid_t) -1; } if (!CreateProcessA @@ -308,7 +308,7 @@ GNUNET_OS_start_process (struct GNUNET_DISK_PipeHandle *pipe_stdin, { SetErrnoFromWinError (GetLastError ()); GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "CreateProcess", path); - return -1; + return (pid_t) -1; } CreateThread (NULL, 64000, ChildWaitThread, proc.hProcess, 0, NULL); @@ -598,7 +598,7 @@ GNUNET_OS_process_status (pid_t proc, enum GNUNET_OS_ProcessStatusType *type, return GNUNET_SYSERR; } - c = GetExitCodeProcess ((HANDLE) proc, &c); + c = GetExitCodeProcess (h, &c); if (STILL_ACTIVE == c) { *type = GNUNET_OS_PROCESS_RUNNING; -- 2.25.1