diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 16:36:21 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 16:36:21 -0800 |
commit | f243cd86c98bf07cd2b22339f27e9fde5dad979f (patch) | |
tree | 439e6f293e0283ebf4ca3b5c437e0eede87e14c7 /expand.cpp | |
parent | 1a5d866a916ab0f7e0630c4205f3fff9b6375a3e (diff) |
Convert jobs list to std::list
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 ) |