diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-17 23:39:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-17 23:39:47 +0000 |
commit | 1b23b30b29eebbe7c9953f2a7470f31a0feb8702 (patch) | |
tree | 10592e165f5e31aac70913190d50d700f6fec96c /winsup/utils/kill.cc | |
parent | 988d896c0a3b60fab9cd323e52eefd4af98be323 (diff) | |
download | cygnal-1b23b30b29eebbe7c9953f2a7470f31a0feb8702.tar.gz cygnal-1b23b30b29eebbe7c9953f2a7470f31a0feb8702.tar.bz2 cygnal-1b23b30b29eebbe7c9953f2a7470f31a0feb8702.zip |
Clean up whitespace.
Diffstat (limited to 'winsup/utils/kill.cc')
-rw-r--r-- | winsup/utils/kill.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index a223e7f9d..a65c0463e 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -56,14 +56,14 @@ static void print_version () { printf ("kill (cygwin) %d.%d.%d\n" - "Process Signaller\n" - "Copyright (C) 1996 - %s Red Hat, Inc.\n" - "This is free software; see the source for copying conditions. There is NO\n" + "Process Signaller\n" + "Copyright (C) 1996 - %s Red Hat, Inc.\n" + "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", - CYGWIN_VERSION_DLL_MAJOR / 1000, - CYGWIN_VERSION_DLL_MAJOR % 1000, - CYGWIN_VERSION_DLL_MINOR, - strrchr (__DATE__, ' ') + 1); + CYGWIN_VERSION_DLL_MAJOR / 1000, + CYGWIN_VERSION_DLL_MAJOR % 1000, + CYGWIN_VERSION_DLL_MINOR, + strrchr (__DATE__, ' ') + 1); } static const char * @@ -135,7 +135,7 @@ get_debug_priv (void) TOKEN_PRIVILEGES tkp; if (!OpenProcessToken (GetCurrentProcess (), - TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &tok)) + TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &tok)) return; if (!LookupPrivilegeValue (NULL, SE_DEBUG_NAME, &luid)) @@ -167,15 +167,15 @@ forcekill (int pid, int sig, int wait) HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) dwpid); if (!h) { - if (!wait || GetLastError () != ERROR_INVALID_PARAMETER) - fprintf (stderr, "%s: couldn't open pid %u\n", - prog_name, (unsigned) dwpid); + if (!wait || GetLastError () != ERROR_INVALID_PARAMETER) + fprintf (stderr, "%s: couldn't open pid %u\n", + prog_name, (unsigned) 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, %lu\n", + fprintf (stderr, "%s: couldn't kill pid %u, %lu\n", prog_name, (unsigned) dwpid, GetLastError ()); CloseHandle (h); } @@ -259,8 +259,8 @@ out: if (!pid) pid = strtoll (*argv, &p, 10); if (*p != '\0' - || (!force && (pid < LONG_MIN || pid > LONG_MAX)) - || (force && (pid <= 0 || pid > ULONG_MAX))) + || (!force && (pid < LONG_MIN || pid > LONG_MAX)) + || (force && (pid <= 0 || pid > ULONG_MAX))) { fprintf (stderr, "%s: illegal pid: %s\n", prog_name, *argv); ret = 1; |