From: Nils Durner Date: Fri, 8 Oct 2010 17:55:16 +0000 (+0000) Subject: fix warnings X-Git-Tag: initial-import-from-subversion-38251~20085 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc24b5bf44bf8d9460b2571fe529403637aa3e16;p=oweals%2Fgnunet.git fix warnings --- 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;