Revert "plug-ins: clean out compilation warning about types used by libpng."

This reverts commit a02facf41e.
It broke the build against other libpng versions.
This commit is contained in:
Michael Natterer
2013-01-05 17:15:19 +01:00
parent a02facf41e
commit 4d4905cc0e

View File

@ -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);