diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 651918065..06df99f3e 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2003-08-31 Christopher Faylor + + * kill.cc (forcekill): Silence some compiler warnings. + 2003-08-31 Christopher Faylor * Makefile.in: Oops. Put the '...' in the right place. diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index 3c75c5078..c5b61c616 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); }