From a7fc18fdd60673bc34a6876dacf790c0ae4a8b8a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 8 Jun 2004 18:49:25 +0000 Subject: [PATCH] Fix Solaris -d100 crash in SD git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1397 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/jcr.c | 2 +- bacula/src/stored/stored_conf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, " "); -- 2.39.5