From 3082f6173c4d06d0d1b9d860f656a1e1c08f3c65 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 1 Feb 2011 21:46:21 +0200 Subject: [PATCH] Fix a compiler warning in image.c. image.c (tiff_load): Avoid compiler warning in 2nd arg to TIFFClientOpen. --- src/ChangeLog | 5 +++++ src/image.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f46ea50d30c..74165302824 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-02-01 Eli Zaretskii + + * image.c (tiff_load): Avoid compiler warning in 2nd arg to + TIFFClientOpen. + 2011-02-01 Jan Djärv * xsmfns.c (ice_connection_closed): Call delete_read_fd. diff --git a/src/image.c b/src/image.c index 3b846bcc400..8303fac4c98 100644 --- a/src/image.c +++ b/src/image.c @@ -6798,7 +6798,7 @@ tiff_load (struct frame *f, struct image *img) memsrc.len = SBYTES (specified_data); memsrc.index = 0; - tiff = fn_TIFFClientOpen ("memory_source", "r", &memsrc, + tiff = fn_TIFFClientOpen ("memory_source", "r", (thandle_t)&memsrc, (TIFFReadWriteProc) tiff_read_from_memory, (TIFFReadWriteProc) tiff_write_from_memory, tiff_seek_in_memory,