From c33902532b9e826f11f99d52806feed455baaf17 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 24 Mar 2008 15:00:04 +0000 Subject: [PATCH] Fix error compiling runscript code on 64 bit machines. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6673 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/dird_conf.c | 2 +- bacula/technotes-2.3 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 8e4dbea1be..f95f25f175 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -1945,7 +1945,7 @@ static void store_runscript(LEX *lc, RES_ITEM *item, int index, int pass) */ res_runscript.set_job_code_callback(job_code_callback_filesetname); while ((c=(char*)res_runscript.commands->pop()) != NULL) { - t = (int) res_runscript.commands->pop(); + t = (long)res_runscript.commands->pop(); RUNSCRIPT *script = new_runscript(); memcpy(script, &res_runscript, sizeof(RUNSCRIPT)); script->command = c; diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 3d3c11b674..f73f520e3c 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -23,6 +23,7 @@ Add long term statistic job table General: 24Mar08 +kes Fix error compiling runscript code on 64 bit machines. kes Tweak Win32 mount point code. kes Fix a couple of bugs in the accurate code (bad sscanf, buffer not cleared giving bad file estimate). -- 2.39.5