From 8812258eb676c77716f73c47bd1a4e08f4fe7de9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 2 Nov 2010 14:40:31 +0100 Subject: [PATCH] Fix compilation warning about void* to int cast --- bacula/src/dird/dird.c | 2 +- bacula/src/stored/job.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5