From: Jaromir Capik Date: Mon, 7 Oct 2013 16:17:19 +0000 (+0200) Subject: pidof: minor fixes X-Git-Tag: v3.3.9~23^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91939c23dc214598d375bfcd1eea71f33644af59;p=procps-ng pidof: minor fixes Adding forgotten --check-root switch. Removing uneeded headers. --- diff --git a/pidof.c b/pidof.c index 6cce24c7..a39a4c0c 100644 --- 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'},