diff options
author | Bernhard Reutner-Fischer | 2005-10-07 15:44:37 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2005-10-07 15:44:37 +0000 |
commit | ab52db8d5ec63b037a85a609646ba93f96308138 (patch) | |
tree | 2733d2f072f4ff69cee6d2424f0451acc0b3a16a /libbb/find_pid_by_name.c | |
parent | 6c0642d772c6661186e2191174fa83182fdc443e (diff) | |
download | busybox-ab52db8d5ec63b037a85a609646ba93f96308138.zip busybox-ab52db8d5ec63b037a85a609646ba93f96308138.tar.gz |
- size reduction of pidof
- fix typo in reverse_pidlist
Diffstat (limited to 'libbb/find_pid_by_name.c')
-rw-r--r-- | libbb/find_pid_by_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c index 966595d..24084a3 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; |