]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: Silenced warnings about deprecated uint16/uint32
authorTill Kamppeter <till.kamppeter@gmail.com>
Sun, 10 Apr 2022 08:52:58 +0000 (10:52 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sun, 10 Apr 2022 08:52:58 +0000 (10:52 +0200)
The function to read TIFF image files via libtiff in
cupsfilters/image-tiff.c uses the deprecated types uint16 and
uint32. The replacements for these types are uint16_t and uint32_t.

This commit replaces the types and so silences the compiler warnings.

cupsfilters/image-tiff.c

index 7b3438be58d8e90e1c201ea9bbe0c3fad03fb169..2ab477e2dd9d98264fe2c154fa0cc4a855876c4e 100644 (file)
@@ -41,8 +41,8 @@ _cfImageReadTIFF(
     const cf_ib_t *lut)                /* I - Lookup table for gamma/brightness */
 {
   TIFF         *tif;                   /* TIFF file */
-  uint32       width, height;          /* Size of image */
-  uint16       photometric,            /* Colorspace */
+  uint32_t     width, height;          /* Size of image */
+  uint16_t     photometric,            /* Colorspace */
                compression,            /* Type of compression */
                orientation,            /* Orientation */
                resunit,                /* Units for resolution */
@@ -52,7 +52,7 @@ _cfImageReadTIFF(
                numinks;                /* Number of inks in set */
   float                xres,                   /* Horizontal resolution */
                yres;                   /* Vertical resolution */
-  uint16       *redcmap,               /* Red colormap information */
+  uint16_t     *redcmap,               /* Red colormap information */
                *greencmap,             /* Green colormap information */
                *bluecmap;              /* Blue colormap information */
   int          c,                      /* Color index */