aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-01 02:40:16 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-01 02:40:16 +0000
commitef58cd2f446b2f6fe06d874b749a425aa735dc1a (patch)
tree0720b898815b453ea6eb21a2b655c0ecde2c6b37
parentf6f88b66d2a85b26f0b86713dca150035ce0dd4f (diff)
downloadnewlib-ef58cd2f446b2f6fe06d874b749a425aa735dc1a.zip
newlib-ef58cd2f446b2f6fe06d874b749a425aa735dc1a.tar.gz
newlib-ef58cd2f446b2f6fe06d874b749a425aa735dc1a.tar.bz2
* kill.cc (forcekill): Silence some compiler warnings.
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/kill.cc5
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 6519180..06df99f 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,5 +1,9 @@
2003-08-31 Christopher Faylor <cgf@redhat.com>
+ * kill.cc (forcekill): Silence some compiler warnings.
+
+2003-08-31 Christopher Faylor <cgf@redhat.com>
+
* Makefile.in: Oops. Put the '...' in the right place.
2003-08-31 Christopher Faylor <cgf@redhat.com>
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index 3c75c50..c5b61c6 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -133,12 +133,13 @@ forcekill (int pid, int sig, int wait)
HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) dwpid);
if (!h)
{
- fprintf (stderr, "couldn't open pid %u\n", dwpid);
+ fprintf (stderr, "couldn't open pid %u\n", (unsigned) dwpid);
return;
}
if (!wait || WaitForSingleObject (h, 200) != WAIT_OBJECT_0)
if (!TerminateProcess (h, sig << 8))
- fprintf (stderr, "couldn't kill pid %u, %d\n", dwpid, GetLastError ());
+ fprintf (stderr, "couldn't kill pid %u, %u\n", (unsigned) dwpid,
+ (unsigned) GetLastError ());
CloseHandle (h);
}