pidof: minor fixes
Adding forgotten --check-root switch. Removing uneeded headers.
This commit is contained in:
parent
afe862ebe4
commit
91939c23dc
4
pidof.c
4
pidof.c
@ -26,9 +26,6 @@
|
|||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
#include "proc/readproc.h"
|
#include "proc/readproc.h"
|
||||||
#include "proc/sig.h"
|
|
||||||
#include "proc/devname.h"
|
|
||||||
#include "proc/sysinfo.h"
|
|
||||||
#include "proc/version.h" /* procps_version */
|
#include "proc/version.h" /* procps_version */
|
||||||
|
|
||||||
|
|
||||||
@ -284,6 +281,7 @@ int main (int argc, char **argv)
|
|||||||
const char *opts = "scnxmo:?Vh";
|
const char *opts = "scnxmo:?Vh";
|
||||||
|
|
||||||
static const struct option longopts[] = {
|
static const struct option longopts[] = {
|
||||||
|
{"check-root", no_argument, NULL, 'c'},
|
||||||
{"single-shot", no_argument, NULL, 's'},
|
{"single-shot", no_argument, NULL, 's'},
|
||||||
{"omit-pid", required_argument, NULL, 'o'},
|
{"omit-pid", required_argument, NULL, 'o'},
|
||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user