(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Reading PNG iCCP chunk.");
- profile=BlobToStringInfo(info,profile_length);
+ profile=BlobToStringInfo(info,(const size_t) profile_length);
if (profile == (StringInfo *) NULL)
{
png_uint_32
- length,
profile_crc=0;
unsigned char
*data;
- length=(png_uint_32) GetStringInfoLength(profile);
+ profile_length=(png_uint_32) GetStringInfoLength(profile);
for (icheck=0; sRGB_info[icheck].len > 0; icheck++)
{
- if (length == sRGB_info[icheck].len)
+ if (profile_length == sRGB_info[icheck].len)
{
if (got_crc == 0)
{
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Got a %lu-byte ICC profile (potentially sRGB)",
- (unsigned long) length);
+ (unsigned long) profile_length);
data=GetStringInfoDatum(profile);
- profile_crc=crc32(0,data,length);
+ profile_crc=crc32(0,data,profile_length);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" with crc=%8x",(unsigned int) profile_crc);
{
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Got %lu-byte ICC profile not recognized as sRGB",
- (unsigned long) length);
+ (unsigned long) profile_length);
(void) SetImageProfile(image,"icc",profile,exception);
}
}
*image_info;
char
+ *name,
s[2];
const char
- *name,
*property,
*value;
*/
if (ping_exclude_sRGB == MagickFalse && ping_preserve_iCCP == MagickFalse)
{
- char
- *name;
-
- const StringInfo
- *profile;
-
ResetImageProfileIterator(image);
- for (name=GetNextImageProfile(image); name != (const char *) NULL; )
+ for (name=GetNextImageProfile(image); name != (char *) NULL; )
{
profile=GetImageProfile(image,name);
(ping_exclude_iCCP == MagickFalse || ping_exclude_zCCP == MagickFalse))
{
ResetImageProfileIterator(image);
- for (name=GetNextImageProfile(image); name != (const char *) NULL; )
+ for (name=GetNextImageProfile(image); name != (char *) NULL; )
{
profile=GetImageProfile(image,name);
/* write eXIf profile */
if (ping_have_eXIf != MagickFalse && ping_exclude_eXIf == MagickFalse)
{
- char
- *name;
-
ResetImageProfileIterator(image);
- for (name=GetNextImageProfile(image); name != (const char *) NULL; )
+ for (name=GetNextImageProfile(image); name != (char *) NULL; )
{
if (LocaleCompare(name,"exif") == 0)
{
- const StringInfo
- *profile;
-
profile=GetImageProfile(image,name);
if (profile != (StringInfo *) NULL)