diff options
author | gad <gad@FreeBSD.org> | 2004-03-27 05:40:31 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-27 05:40:31 +0000 |
commit | 6f505f861ad364efeed38d5e56cc6646a710cd27 (patch) | |
tree | 2a257b20e65b354c895ebae6b0c9d9fd4a0c9433 /usr.bin/pkill | |
parent | 8deb46de83baeba91d59eda98ba8cb9c8b0e40db (diff) | |
download | FreeBSD-src-6f505f861ad364efeed38d5e56cc6646a710cd27.zip FreeBSD-src-6f505f861ad364efeed38d5e56cc6646a710cd27.tar.gz |
Some style(9)-ish improvements, courtesy of bde.
Noticed by: bde
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r-- | usr.bin/pkill/pkill.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c index 4c6c8eb..01b2ae0 100644 --- a/usr.bin/pkill/pkill.c +++ b/usr.bin/pkill/pkill.c @@ -68,14 +68,14 @@ __FBSDID("$FreeBSD$"); #define STATUS_BADUSAGE 2 #define STATUS_ERROR 3 -#if defined(__FreeBSD__) -# if __FreeBSD_version > 502000 -# define IS_KERNPROC(xPtr) (xPtr->ki_flag & P_KTHREAD) -# endif +#ifdef __FreeBSD__ +#if __FreeBSD_version > 502000 +#define IS_KERNPROC(kp) ((kp)->ki_flag & P_KTHREAD) +#endif #endif -#if !defined(IS_KERNPROC) -#define IS_KERNPROC(xPtr) (xPtr->ki_flag & P_SYSTEM) +#ifndef IS_KERNPROC +#define IS_KERNPROC(kp) ((kp)->ki_flag & P_SYSTEM) #endif enum listtype { |