aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 16:36:21 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 16:36:21 -0800
commitf243cd86c98bf07cd2b22339f27e9fde5dad979f (patch)
tree439e6f293e0283ebf4ca3b5c437e0eede87e14c7 /expand.cpp
parent1a5d866a916ab0f7e0630c4205f3fff9b6375a3e (diff)
Convert jobs list to std::list
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/expand.cpp b/expand.cpp
index 7b347b5c..473f855a 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -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 )