summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaromir Capik <jcapik@redhat.com>2013-10-07 18:17:19 +0200
committerJaromir Capik <jcapik@redhat.com>2013-10-10 17:01:48 +0200
commit91939c23dc214598d375bfcd1eea71f33644af59 (patch)
treeafc3bb84a97c1744586bf83d6bef457ff5559ffe
parentafe862ebe4be1b02cc5378c68965b7ee2cb9e3d7 (diff)
downloadprocps-ng-91939c23dc214598d375bfcd1eea71f33644af59.tar.gz
pidof: minor fixes
Adding forgotten --check-root switch. Removing uneeded headers.
-rw-r--r--pidof.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pidof.c b/pidof.c
index 6cce24c..a39a4c0 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'},