aboutsummaryrefslogtreecommitdiff
path: root/coders/miff.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/miff.c')
-rw-r--r--coders/miff.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/coders/miff.c b/coders/miff.c
index cbcc50f95..21b91d088 100644
--- a/coders/miff.c
+++ b/coders/miff.c
@@ -17,7 +17,7 @@
% July 1992 %
% %
% %
-% Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
@@ -481,7 +481,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
QuantumType
quantum_type;
- register ssize_t
+ ssize_t
i;
size_t
@@ -550,9 +550,9 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
colors=0;
image->depth=8UL;
image->compression=NoCompression;
- while ((isgraph(c) != MagickFalse) && (c != (int) ':'))
+ while ((isgraph((int) ((unsigned char) c)) != 0) && (c != (int) ':'))
{
- register char
+ char
*p;
if (c == (int) '{')
@@ -596,7 +596,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
c=ReadBlobByte(image);
}
else
- if (isalnum(c) != MagickFalse)
+ if (isalnum((int) ((unsigned char) c)) != MagickFalse)
{
/*
Get the keyword.
@@ -1127,7 +1127,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
}
if (image->montage != (char *) NULL)
{
- register char
+ char
*p;
/*
@@ -1425,10 +1425,10 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
length=0;
for (y=0; y < (ssize_t) image->rows; y++)
{
- register ssize_t
+ ssize_t
x;
- register Quantum
+ Quantum
*magick_restrict q;
if (status == MagickFalse)
@@ -1700,7 +1700,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
do
{
c=ReadBlobByte(image);
- } while ((isgraph(c) == MagickFalse) && (c != EOF));
+ } while ((isgraph((int) ((unsigned char) c)) == 0) && (c != EOF));
if (c != EOF)
{
/*
@@ -2032,7 +2032,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
QuantumType
quantum_type;
- register ssize_t
+ ssize_t
i;
size_t
@@ -2439,7 +2439,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
case 32:
default:
{
- register unsigned int
+ unsigned int
long_pixel;
long_pixel=ScaleQuantumToLong((Quantum)
@@ -2455,7 +2455,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
}
case 16:
{
- register unsigned short
+ unsigned short
short_pixel;
short_pixel=ScaleQuantumToShort((Quantum)
@@ -2471,7 +2471,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
}
case 8:
{
- register unsigned char
+ unsigned char
char_pixel;
char_pixel=(unsigned char) ScaleQuantumToChar((Quantum)
@@ -2556,10 +2556,10 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
pixels=(unsigned char *) GetQuantumPixels(quantum_info);
for (y=0; y < (ssize_t) image->rows; y++)
{
- register const Quantum
+ const Quantum
*magick_restrict p;
- register ssize_t
+ ssize_t
x;
if (status == MagickFalse)