diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 20:52:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 20:52:00 +0000 |
commit | 0b791d9a976e46b2705ae73046706ab9ac3768be (patch) | |
tree | c97a6ccdf5b8eb54ecac8991024fa8c80d01ff6e /procps | |
parent | 4144504912954b0d31c5bbe5f13df5a4ec4f122a (diff) | |
download | busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.tar.gz busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.tar.bz2 busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.zip |
move llist_find_str from modutils to libbb
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pidof.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/procps/pidof.c b/procps/pidof.c index 780504433..194239961 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -35,12 +35,12 @@ int pidof_main(int argc UNUSED_PARAM, char **argv) | |||
35 | /* fill omit list. */ | 35 | /* fill omit list. */ |
36 | { | 36 | { |
37 | llist_t *omits_p = omits; | 37 | llist_t *omits_p = omits; |
38 | while (omits_p) { | 38 | while (1) { |
39 | omits_p = llist_find_str(omits_p, "%PPID"); | ||
40 | if (!omits_p) | ||
41 | break; | ||
39 | /* are we asked to exclude the parent's process ID? */ | 42 | /* are we asked to exclude the parent's process ID? */ |
40 | if (strcmp(omits_p->data, "%PPID") == 0) { | 43 | omits_p->data = utoa((unsigned)getppid()); |
41 | omits_p->data = utoa((unsigned)getppid()); | ||
42 | } | ||
43 | omits_p = omits_p->link; | ||
44 | } | 44 | } |
45 | } | 45 | } |
46 | #endif | 46 | #endif |