From: Kern Sibbald Date: Tue, 8 Jun 2004 18:49:25 +0000 (+0000) Subject: Fix Solaris -d100 crash in SD X-Git-Tag: Release-1.34.3~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7fc18fdd60673bc34a6876dacf790c0ae4a8b8a;p=bacula%2Fbacula Fix Solaris -d100 crash in SD git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1397 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/jcr.c b/bacula/src/lib/jcr.c index 2b10d6b936..3f1c7d89f3 100755 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -40,7 +40,7 @@ static void jcr_timeout_check(watchdog_t *self); int num_jobs_run; dlist *last_jobs = NULL; -static const int max_last_jobs = 10; +const int max_last_jobs = 10; static JCR *jobs = NULL; /* pointer to JCR chain */ static brwlock_t lock; /* lock for last jobs and JCR chain */ diff --git a/bacula/src/stored/stored_conf.c b/bacula/src/stored/stored_conf.c index 7f619e9c6a..8e1558f912 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -176,7 +176,7 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, char *fmt, ... res->res_dev.max_volume_size); sendit(sock, " max_file_size=%" lld " capacity=%" lld "\n", res->res_dev.max_file_size, res->res_dev.volume_capacity); - sendit(sock, " spool_directory=%s\n", res->res_dev.spool_directory); + sendit(sock, " spool_directory=%s\n", NPRT(res->res_dev.spool_directory)); sendit(sock, " max_spool_size=%" lld " max_job_spool_size=%" lld "\n", res->res_dev.max_spool_size, res->res_dev.max_job_spool_size); strcpy(buf, " ");