Convert jobs list to std::list

This commit is contained in:
ridiculousfish
2012-01-29 16:36:21 -08:00
parent 1a5d866a91
commit f243cd86c9
6 changed files with 123 additions and 97 deletions

View File

@@ -397,7 +397,8 @@ static int find_process( const wchar_t *proc,
if( flags & ACCEPT_INCOMPLETE )
{
for( j=first_job; j != 0; j=j->next )
job_iterator_t jobs;
while ((j = jobs.next()))
{
wchar_t jid[16];
if( j->command == 0 )
@@ -454,7 +455,8 @@ static int find_process( const wchar_t *proc,
if( found )
return 1;
for( j=first_job; j != 0; j=j->next )
job_iterator_t jobs;
while ((j = jobs.next()))
{
int offset;
@@ -487,7 +489,8 @@ static int find_process( const wchar_t *proc,
return 1;
}
for( j=first_job; j; j=j->next )
jobs.reset();
while ((j = jobs.next()))
{
process_t *p;
if( j->command == 0 )