This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
- version 2 as ammended with additional clauses defined in the
+ version 2 as amended with additional clauses defined in the
file LICENSE in the main source directory.
This program is distributed in the hope that it will be useful,
extern int r_first;
extern int r_last;
extern struct s_res resources[];
-extern int console_msg_pending;
-extern char my_name[];
/* Forward referenced functions */
jcr->sched_time = jcr->start_time;
jcr->JobType = job_type;
jcr->JobLevel = L_NONE;
- jcr->JobStatus = JS_Running;
+ set_jcr_job_status(jcr, JS_Running);
jcr->JobId = 0;
return jcr;
}
pm_strcpy(ua->cmd, "messages");
qmessagescmd(ua, ua->cmd);
ua->user_notified_msg_pending = FALSE;
- } else if (!ua->user_notified_msg_pending && console_msg_pending) {
+ } else if (!ua->gui && !ua->user_notified_msg_pending && console_msg_pending) {
bsendmsg(ua, _("You have messages.\n"));
ua->user_notified_msg_pending = TRUE;
}
ua->db = jcr->db;
ua->cmd = get_pool_memory(PM_FNAME);
ua->args = get_pool_memory(PM_FNAME);
- ua->verbose = 1;
- ua->automount = TRUE;
+ ua->verbose = true;
+ ua->automount = true;
return ua;
}