diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 1998-05-09 10:02:29 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:04:25 -0500 |
commit | d0dce40075392be7c658aee9ffb97b24c96f9f0b (patch) | |
tree | f034f2739ced6e93944e6c1eb8485c098e025c53 /example.c | |
parent | 1d963612738733e8ba0f9259d0e14ac0a552755c (diff) |
Imported from libpng-1.0.1c.tar
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -83,7 +83,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* file is already open */ * was compiled with a compatible version of the library. REQUIRED */ png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, - (void *)user_error_ptr, user_error_fn, user_warning_fn); + png_voidp user_error_ptr, user_error_fn, user_warning_fn); if (png_ptr == NULL) { @@ -362,7 +362,7 @@ initialize_png_reader(png_structp *png_ptr, png_infop *info_ptr) * linked libraries. */ *png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, - (void *)user_error_ptr, user_error_fn, user_warning_fn); + png_voidp user_error_ptr, user_error_fn, user_warning_fn); if (*png_ptr == NULL) { @@ -498,7 +498,7 @@ void write_png(char *file_name /* , ... other image information ... */) * in case we are using dynamically linked libraries. REQUIRED. */ png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, - (void *)user_error_ptr, user_error_fn, user_warning_fn); + png_voidp user_error_ptr, user_error_fn, user_warning_fn); if (png_ptr == NULL) { |