]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation warning about void* to int cast
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Nov 2010 13:40:31 +0000 (14:40 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 12 Nov 2010 08:13:57 +0000 (09:13 +0100)
bacula/src/dird/dird.c
bacula/src/stored/job.c

index 4a1b3edf789ee7e87c16bf6cd8c971fff1992702..7cdbbe37d21b1271e0dff83faa2558af4966dead 100644 (file)
@@ -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();
index 1ed7bd42363b7cf9246f4dd63d6baf2110b1f491..a30b1cab0cad1ff2ca1021c1f43a9b5c8b9e2ed0 100644 (file)
@@ -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;