diff options
author | Jim Warner <james.warner@comcast.net> | 2020-06-30 00:00:00 -0500 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2020-07-05 21:13:01 +1000 |
commit | 1aa8b1644118ee84ff02158e1a9f409527fb5a96 (patch) | |
tree | b86e7fb1fdc221dc6901d95e702c1753bf48354a /pidof.c | |
parent | 70fd03e461ee961597280280f60fef79c37562ad (diff) | |
download | procps-ng-1aa8b1644118ee84ff02158e1a9f409527fb5a96.tar.gz |
library: eliminated the questionable 'procps.h' header
There was a time when that procps.h file served a more
traditional role. Prior to the commit referenced below
it held just macros plus manifest constants. But, with
that change, such items were replaced with a series of
includes embracing all the library exported functions.
That approach was known to disguise errors which would
have otherwise yielded a compiler warning. And without
such a warning, there was no way to address the error.
So this patch will trade the all inclusive header file
approach for individual includes only where necessary.
Reference(s):
. April 2016, procps.h header file revamped
commit ccb6ae8de14b0cde25b84369ef995bcd69cbf7b6
. Sept 2018, top abandoned use of procps.h
commit a6dfc2382ed1e023dd345cdb1d2388c9b67bcc7f
Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'pidof.c')
-rw-r--r-- | pidof.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,7 +28,8 @@ #include "fileutils.h" #include "nls.h" #include "xalloc.h" -#include <proc/procps.h> + +#include <proc/pids.h> #define grow_size(x) do { \ |