From eb1ce1f0785fa7c3b0cefc92a36e3bf19383fea0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 28 Jan 2012 10:57:39 +0100 Subject: [PATCH] Fix 32/64 bit problems in SD sscanf commands --- bacula/src/stored/dircmd.c | 2 +- bacula/src/stored/job.c | 6 +++--- bacula/src/stored/reserve.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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; -- 2.39.5