diff options
author | Rob Landley <rob@landley.net> | 2006-05-27 03:44:51 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-27 03:44:51 +0400 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /procps/pidof.c | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
Diffstat (limited to 'procps/pidof.c')
-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) if (!strncmp(omits_p->data, "%PPID", 5)) { llist_pop(&omits_p); snprintf(getppid_str, sizeof(getppid_str), "%d", getppid()); - omits_p = llist_add_to(omits_p, getppid_str); -#if 0 - } else { - bb_error_msg_and_die("illegal omit pid value (%s)!\n", - omits_p->data); -#endif + llist_add_to(&omits_p, getppid_str); } omits_p = omits_p->link; } |