diff options
author | 2006-10-26 06:47:59 +1000 | |
---|---|---|
committer | 2006-10-26 06:47:59 +1000 | |
commit | 3a128e1484defb3086e1d3154316df9c50e2de86 (patch) | |
tree | 20151f33d23dc4fe63884258df003134272336d6 /builtin_jobs.c | |
parent | cdc52f7bde72e829202df0c241dc8f2203489005 (diff) |
Use bitset to implement flags for jobs instead of wasting a whole int for every flag
darcs-hash:20061025204759-ac50b-ea07caa30782a1ea02d2cd8aa7cbc94474047a10.gz
Diffstat (limited to 'builtin_jobs.c')
-rw-r--r-- | builtin_jobs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin_jobs.c b/builtin_jobs.c index 361f4a19..8b079139 100644 --- a/builtin_jobs.c +++ b/builtin_jobs.c @@ -276,7 +276,7 @@ static int builtin_jobs( wchar_t **argv ) */ for( j=first_job; j; j=j->next ) { - if( j->constructed && !job_is_completed(j) ) + if( (j->flags & JOB_CONSTRUCTED) && !job_is_completed(j) ) { builtin_jobs_print( j, mode, !found ); return 0; @@ -330,7 +330,7 @@ static int builtin_jobs( wchar_t **argv ) /* Ignore unconstructed jobs, i.e. ourself. */ - if( j->constructed && !job_is_completed(j) ) + if( (j->flags & JOB_CONSTRUCTED) && !job_is_completed(j) ) { builtin_jobs_print( j, mode, !found ); found = 1; |