X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fua_server.c;h=689b2056f76c6ae0256074cf65aba1a6ad800802;hb=44566f589dd96e4414e38ec4bf7d76b22fbcd9aa;hp=0ec2f11d3fce42a60624e349b622c91ca9bb9991;hpb=6ff6a899c400e35780bfc0e60c81456e533d5c3e;p=bacula%2Fbacula diff --git a/bacula/src/dird/ua_server.c b/bacula/src/dird/ua_server.c index 0ec2f11d3f..689b2056f7 100644 --- a/bacula/src/dird/ua_server.c +++ b/bacula/src/dird/ua_server.c @@ -7,7 +7,7 @@ * Version $Id$ */ /* - Copyright (C) 2000-2005 Kern Sibbald + Copyright (C) 2000-2006 Kern Sibbald This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -28,8 +28,6 @@ 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 */ @@ -96,7 +94,7 @@ JCR *new_control_jcr(const char *base_name, int job_type) 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; } @@ -176,8 +174,8 @@ UAContext *new_ua_context(JCR *jcr) 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; }