]> 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>
Wed, 24 Aug 2022 10:49:58 +0000 (12:49 +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.

(cherry picked from commit c02f8b513779e0c1e3a78f24716bb9fe1d60c261)

cupsfilters/image-tiff.c

index b41a87be7b1a37754061f9768a538f348f9af227..b65ce5d2a10a1343b672c0d7f5bd981258b25fba 100644 (file)
@@ -41,8 +41,8 @@ _cupsImageReadTIFF(
     const cups_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 @@ _cupsImageReadTIFF(
                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 */