diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pidof.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/procps/pidof.c b/procps/pidof.c index 98008aaf1..4ad6b1567 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -67,12 +67,7 @@ int pidof_main(int argc, char **argv) | |||
67 | if (!strncmp(omits_p->data, "%PPID", 5)) { | 67 | if (!strncmp(omits_p->data, "%PPID", 5)) { |
68 | llist_pop(&omits_p); | 68 | llist_pop(&omits_p); |
69 | snprintf(getppid_str, sizeof(getppid_str), "%d", getppid()); | 69 | snprintf(getppid_str, sizeof(getppid_str), "%d", getppid()); |
70 | omits_p = llist_add_to(omits_p, getppid_str); | 70 | llist_add_to(&omits_p, getppid_str); |
71 | #if 0 | ||
72 | } else { | ||
73 | bb_error_msg_and_die("illegal omit pid value (%s)!\n", | ||
74 | omits_p->data); | ||
75 | #endif | ||
76 | } | 71 | } |
77 | omits_p = omits_p->link; | 72 | omits_p = omits_p->link; |
78 | } | 73 | } |