]> granicus.if.org Git - procps-ng/commitdiff
pidof: minor fixes
authorJaromir Capik <jcapik@redhat.com>
Mon, 7 Oct 2013 16:17:19 +0000 (18:17 +0200)
committerJaromir Capik <jcapik@redhat.com>
Thu, 10 Oct 2013 15:01:48 +0000 (17:01 +0200)
Adding forgotten --check-root switch. Removing uneeded headers.

pidof.c

diff --git a/pidof.c b/pidof.c
index 6cce24c7678cb1c044442a48d3613baea70f1283..a39a4c0cfe58ed3599d38278377b6bfd6ae40487 100644 (file)
--- a/pidof.c
+++ b/pidof.c
@@ -26,9 +26,6 @@
 #include "nls.h"
 #include "xalloc.h"
 #include "proc/readproc.h"
-#include "proc/sig.h"
-#include "proc/devname.h"
-#include "proc/sysinfo.h"
 #include "proc/version.h" /* procps_version */
 
 
@@ -284,6 +281,7 @@ int main (int argc, char **argv)
        const char *opts = "scnxmo:?Vh";
 
        static const struct option longopts[] = {
+               {"check-root", no_argument, NULL, 'c'},
                {"single-shot", no_argument, NULL, 's'},
                {"omit-pid", required_argument, NULL, 'o'},
                {"help", no_argument, NULL, 'h'},