Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-02-02 17:32:28 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-02-02 17:32:28 +0300
commitf5c2d4db5be575ce5cb87f5727c981901639f74d (patch)
tree2d1acd573650f9728996f434fdfa92cbd3e53c47
parent2cd6829619290e12095eaeed21aa1a431116d71a (diff)
Cygwin: kill(1): revert casts required for 32 bit to avoid spurious warnings
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/utils/kill.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index 19c19d089..e34923ac0 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -169,14 +169,15 @@ forcekill (pid_t pid, int sig, int wait)
if (!h)
{
if (!wait || GetLastError () != ERROR_INVALID_PARAMETER)
- fprintf (stderr, "%s: couldn't open pid %u\n", prog_name, dwpid);
+ fprintf (stderr, "%s: couldn't open pid %u\n",
+ prog_name, (unsigned int) dwpid);
return;
}
if (!wait || WaitForSingleObject (h, 200) != WAIT_OBJECT_0)
if (sig && !TerminateProcess (h, sig << 8)
&& WaitForSingleObject (h, 200) != WAIT_OBJECT_0)
fprintf (stderr, "%s: couldn't kill pid %u, %u\n",
- prog_name, dwpid, GetLastError ());
+ prog_name, (unsigned int) dwpid, (unsigned int) GetLastError ());
CloseHandle (h);
}