- size reduction of pidof

- fix typo in reverse_pidlist
This commit is contained in:
Bernhard Reutner-Fischer
2005-10-07 15:44:37 +00:00
parent 6c0642d772
commit ab52db8d5e
2 changed files with 31 additions and 43 deletions

View File

@ -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;