summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2018-08-18 21:01:02 -0400
committerCosmin Truta <ctruta@gmail.com>2018-08-18 21:01:02 -0400
commit1ef88828146c23bfc6d81042c6d6ecd61ccc983b (patch)
treede8eafd6a8c372f3bdb70a51ed799896bdc99c30 /pngread.c
parent58eedced2578c143705c1d8503e4ed3a40aaa8b3 (diff)
downloadlibpng-1ef88828146c23bfc6d81042c6d6ecd61ccc983b.tar.gz
Replace the remaining uses of PNG_CONST with const
In v1.6.0, compiler support for const became a requirement. It should be used consistently. To maintain backwards compatibility, PNG_CONST is still maintained in deprecated form.
Diffstat (limited to 'pngread.c')
-rw-r--r--pngread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pngread.c b/pngread.c
index 2d3a100ea..9c477c1bf 100644
--- a/pngread.c
+++ b/pngread.c
@@ -1621,7 +1621,7 @@ png_image_skip_unused_chunks(png_structrp png_ptr)
* errors (which are unfortunately quite common.)
*/
{
- static PNG_CONST png_byte chunks_to_process[] = {
+ static const png_byte chunks_to_process[] = {
98, 75, 71, 68, '\0', /* bKGD */
99, 72, 82, 77, '\0', /* cHRM */
103, 65, 77, 65, '\0', /* gAMA */
@@ -3946,7 +3946,7 @@ png_image_read_direct(png_voidp argument)
*/
if (linear != 0)
{
- PNG_CONST png_uint_16 le = 0x0001;
+ const png_uint_16 le = 0x0001;
if ((*(png_const_bytep) & le) != 0)
png_set_swap(png_ptr);