From: Kern Sibbald Date: Sat, 28 Jan 2012 09:57:39 +0000 (+0100) Subject: Fix 32/64 bit problems in SD sscanf commands X-Git-Tag: Release-7.0.0~302 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=34efb0967f33bdc275072b05b5ece306363e9eb2;p=bacula%2Fbacula Fix 32/64 bit problems in SD sscanf commands --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 61b01bc18b..1792599d62 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2001-2011 Free Software Foundation Europe e.V. + Copyright (C) 2001-2012 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. diff --git a/bacula/src/stored/job.c b/bacula/src/stored/job.c index 42f71230df..8be2b4e201 100644 --- a/bacula/src/stored/job.c +++ b/bacula/src/stored/job.c @@ -67,14 +67,14 @@ static char BAD_job[] = "3915 Bad Job command. stat=%d CMD: %s\n"; */ bool job_cmd(JCR *jcr) { - int JobId; + int32_t JobId; char auth_key[100]; char spool_size[30]; char seed[100]; BSOCK *dir = jcr->dir_bsock; POOL_MEM job_name, client_name, job, fileset_name, fileset_md5; - int JobType, level, spool_attributes, no_attributes, spool_data; - int write_part_after_job, PreferMountedVols; + int32_t JobType, level, spool_attributes, no_attributes, spool_data; + int32_t write_part_after_job, PreferMountedVols; int stat; JCR *ojcr; diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 41a4fd22b8..a40be1607a 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2011 Free Software Foundation Europe e.V. + Copyright (C) 2000-2012 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -180,9 +180,9 @@ static bool use_device_cmd(JCR *jcr) { POOL_MEM store_name, dev_name, media_type, pool_name, pool_type; BSOCK *dir = jcr->dir_bsock; - int append; + int32_t append; bool ok; - int Copy, Stripe; + int32_t Copy, Stripe; DIRSTORE *store; RCTX rctx; alist *dirstore;