aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin_jobs.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-27 18:43:24 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-27 18:43:24 -0800
commitfdfa5c06028d3473f57cea497a6682a8e550352f (patch)
treef822ccc211dd331c2b0d99949d0e4288fded0eef /builtin_jobs.cpp
parent50ee5d28cdc5b521f2d2feda264ec798e8f3ab8e (diff)
Some initial work towards resolving nasty fork/pthread issues, and to having a per-parser job list
Diffstat (limited to 'builtin_jobs.cpp')
-rw-r--r--builtin_jobs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin_jobs.cpp b/builtin_jobs.cpp
index 1aecf51d..86e4b076 100644
--- a/builtin_jobs.cpp
+++ b/builtin_jobs.cpp
@@ -71,7 +71,7 @@ static int cpu_use( job_t *j )
/**
Print information about the specified job
*/
-static void builtin_jobs_print( job_t *j, int mode, int header )
+static void builtin_jobs_print( const job_t *j, int mode, int header )
{
process_t *p;
switch( mode )
@@ -164,7 +164,7 @@ static int builtin_jobs( parser_t &parser, wchar_t **argv )
int found=0;
int mode=JOBS_DEFAULT;
int print_last = 0;
- job_t *j;
+ const job_t *j;
argc = builtin_count_args( argv );
woptind=0;
@@ -270,7 +270,7 @@ static int builtin_jobs( parser_t &parser, wchar_t **argv )
Ignore unconstructed jobs, i.e. ourself.
*/
job_iterator_t jobs;
- job_t *j;
+ const job_t *j;
while ((j = jobs.next()))
{
@@ -324,7 +324,7 @@ static int builtin_jobs( parser_t &parser, wchar_t **argv )
else
{
job_iterator_t jobs;
- job_t *j;
+ const job_t *j;
while ((j = jobs.next()))
{
/*