]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix error compiling runscript code on 64 bit machines.
authorKern Sibbald <kern@sibbald.com>
Mon, 24 Mar 2008 15:00:04 +0000 (15:00 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 24 Mar 2008 15:00:04 +0000 (15:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6673 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/dird_conf.c
bacula/technotes-2.3

index 8e4dbea1be04e0ba288df8e73529a4fbded1c29e..f95f25f175c41f5386b02782e06e563fe0f95768 100644 (file)
@@ -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;
index 3d3c11b674b0002c5a8fd93a41b09815725156b6..f73f520e3c28d61bb3c491d24657f886cdb3ec6f 100644 (file)
@@ -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).