[gimp] Revert "plug-ins: clean out compilation warning about types used by libpng."
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Revert "plug-ins: clean out compilation warning about types used by libpng."
- Date: Sat, 5 Jan 2013 16:16:09 +0000 (UTC)
commit 4d4905cc0effd2c4a842b1dd22e248a435e451d5
Author: Michael Natterer <mitch gimp org>
Date: Sat Jan 5 17:15:19 2013 +0100
Revert "plug-ins: clean out compilation warning about types used by libpng."
This reverts commit a02facf41e7ef1fd9a961689615b78e41e7e25ab.
It broke the build against other libpng versions.
plug-ins/common/file-png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 33892f6..d19f63f 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1142,7 +1142,7 @@ load_image (const gchar *filename,
png_charp profname, profile;
int profcomp;
- if (png_get_iCCP (pp, info, &profname, &profcomp, (png_bytepp) &profile, &proflen))
+ if (png_get_iCCP (pp, info, &profname, &profcomp, &profile, &proflen))
{
GimpParasite *parasite;
@@ -1547,7 +1547,7 @@ save_image (const gchar *filename,
png_set_iCCP (pp, info,
profile_name ? profile_name : "ICC profile", 0,
- (png_const_bytep) gimp_parasite_data (profile_parasite),
+ (gchar *) gimp_parasite_data (profile_parasite),
gimp_parasite_data_size (profile_parasite));
g_free (profile_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]