aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-07 15:44:37 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-07 15:44:37 +0000
commitab52db8d5ec63b037a85a609646ba93f96308138 (patch)
tree2733d2f072f4ff69cee6d2424f0451acc0b3a16a /libbb
parent6c0642d772c6661186e2191174fa83182fdc443e (diff)
downloadbusybox-ab52db8d5ec63b037a85a609646ba93f96308138.tar.gz
- size reduction of pidof
- fix typo in reverse_pidlist
Diffstat (limited to 'libbb')
-rw-r--r--libbb/find_pid_by_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c
index 966595ddb..24084a34f 100644
--- a/libbb/find_pid_by_name.c
+++ b/libbb/find_pid_by_name.c
@@ -45,7 +45,7 @@ extern long* find_pid_by_name( const char* pidName)
extern long *pidlist_reverse(long *pidList)
{
int i=0;
- while (pidList[i] > 0 && i++);
+ while (pidList[i] > 0 && ++i);
if ( i-- > 0) {
long k;
int j;