[devel] Added const_png_structp and const_png_infop types, and used them in

prototypes for most png_get_*() functions.
This commit is contained in:
Glenn Randers-Pehrson
2011-01-21 23:12:51 -06:00
parent 2cb633b915
commit b86b4928d6
11 changed files with 232 additions and 202 deletions

View File

@@ -1,7 +1,7 @@
/* pngerror.c - stub functions for i/o and memory allocation
*
* Last changed in libpng 1.5.0 [January 6, 2011]
* Last changed in libpng 1.5.1 [(PENDING RELEASE)]
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
@@ -423,7 +423,7 @@ png_set_error_fn(png_structp png_ptr, png_voidp error_ptr,
* pointer before png_write_destroy and png_read_destroy are called.
*/
png_voidp PNGAPI
png_get_error_ptr(png_structp png_ptr)
png_get_error_ptr(const_png_structp png_ptr)
{
if (png_ptr == NULL)
return NULL;