From: Eric Bollengier Date: Tue, 2 Nov 2010 13:40:31 +0000 (+0100) Subject: Fix compilation warning about void* to int cast X-Git-Tag: Release-7.0.0~1428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8812258eb676c77716f73c47bd1a4e08f4fe7de9;p=bacula%2Fbacula Fix compilation warning about void* to int cast --- diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 4a1b3edf78..7cdbbe37d2 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -447,7 +447,7 @@ static void free_saved_resources(int table) */ static void reload_job_end_cb(JCR *jcr, void *ctx) { - int reload_id = (int)((long int)ctx); + int reload_id = (int)((intptr_t)ctx); Dmsg3(100, "reload job_end JobId=%d table=%d cnt=%d\n", jcr->JobId, reload_id, reload_table[reload_id].job_count); lock_jobs(); diff --git a/bacula/src/stored/job.c b/bacula/src/stored/job.c index 1ed7bd4236..a30b1cab0c 100644 --- a/bacula/src/stored/job.c +++ b/bacula/src/stored/job.c @@ -131,7 +131,7 @@ bool job_cmd(JCR *jcr) */ ojcr = get_jcr_by_full_name(job.c_str()); if (ojcr && !ojcr->authenticated) { - Dmsg2(100, "Found ojcr=0x%x Job %s\n", (unsigned)(long)ojcr, job.c_str()); + Dmsg2(100, "Found ojcr=0x%x Job %s\n", (unsigned)(intptr_t)ojcr, job.c_str()); free_jcr(ojcr); } jcr->JobId = JobId;