Clarify/clean up code, make fewer assumptions about types:
authorChris Pressey <cpressey@dragonflybsd.org>
Thu, 6 Jan 2005 22:37:46 +0000 (22:37 +0000)
committerChris Pressey <cpressey@dragonflybsd.org>
Thu, 6 Jan 2005 22:37:46 +0000 (22:37 +0000)
commita59669e42274a275857465f9d2dbaf7820d00ac7
tree4edddba1a56118b1f9001f69b709e21906325329
parent64053d25b1547970116d57759d177bfd3e63f0a2
Clarify/clean up code, make fewer assumptions about types:
- Store pids/gids/uids/devs in a union instead of casting to a long;
- Don't use the nonspecific LT_GENERIC list type;
- Add a more specific LT_PPID list type for parent pids;
- Use NODEV to indicate the lack of a specified device;
- Make the makelist() function more straightforward:
  - use only one switch statement instead of two cascading ones;
  - introduce a helper function parse_pid() to parse pids;
- No functional changes.
usr.bin/pkill/pkill.c