summaryrefslogtreecommitdiff
path: root/pngwio.c
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2018-06-17 22:37:44 -0400
committerCosmin Truta <ctruta@gmail.com>2018-06-17 22:37:44 -0400
commita74aa9a0028a8e746ec5646a3d3ee1c659f0af8a (patch)
treebd6c99d54c5e07c8c40448598210e2f8218ef13e /pngwio.c
parent916117d97058b37e7eef2558a71919a8a073a3d3 (diff)
[libpng16] Replace the remaining uses of png_size_t with size_t
In v1.6.0, size_t became a required type. It should be used consistently. To maintain backwards compatibility, png_size_t is still maintained in deprecated form.
Diffstat (limited to 'pngwio.c')
-rw-r--r--pngwio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pngwio.c b/pngwio.c
index 37c7c3a7f..3a76173f7 100644
--- a/pngwio.c
+++ b/pngwio.c
@@ -30,7 +30,7 @@
*/
void /* PRIVATE */
-png_write_data(png_structrp png_ptr, png_const_bytep data, png_size_t length)
+png_write_data(png_structrp png_ptr, png_const_bytep data, size_t length)
{
/* NOTE: write_data_fn must not change the buffer! */
if (png_ptr->write_data_fn != NULL )
@@ -48,9 +48,9 @@ png_write_data(png_structrp png_ptr, png_const_bytep data, png_size_t length)
* than changing the library.
*/
void PNGCBAPI
-png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
+png_default_write_data(png_structp png_ptr, png_bytep data, size_t length)
{
- png_size_t check;
+ size_t check;
if (png_ptr == NULL)
return;