Skip to content

Commit

Permalink
Tweak comments and return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 10, 2013
1 parent 98d3acc commit 47b2ede
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/dird/ua_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ static int modify_job_parameters(UAContext *ua, JCR *jcr, RUN_CTX &rc);
/* Imported variables */
extern struct s_kw ReplaceOptions[];

/*
* Rerun a job by jobid. Lookup the job data and rerun the job with that data.
*
* Returns: false on error
* true if OK
*/
static inline bool rerun_job(UAContext *ua, JobId_t JobId, bool yes, utime_t now)
{
JOB_DBR jr;
Expand Down Expand Up @@ -119,11 +125,10 @@ static inline bool rerun_job(UAContext *ua, JobId_t JobId, bool yes, utime_t now
}

/*
* Rerun a job by jobid. Lookup the job data and rerun the
* job with that data.
* Rerun a job selection.
*
* Returns: 0 on error
* JobId if OK
* 1 if OK
*/
int rerun_cmd(UAContext *ua, const char *cmd)
{
Expand Down Expand Up @@ -248,7 +253,7 @@ int rerun_cmd(UAContext *ua, const char *cmd)
return 1;

bail_out:
return -1;
return 0;
}

/*
Expand Down

0 comments on commit 47b2ede

Please sign in to comment.