1 diff -Naur src.old/ucil_png.c src/ucil_png.c
2 --- src.old/ucil_png.c 2010-01-17 07:49:29.000000000 +0000
3 +++ src/ucil_png.c 2010-05-22 10:35:55.090733124 +0000
8 - png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
9 + png_destroy_read_struct(&png_ptr, NULL, NULL);
14 if (setjmp(png_jmpbuf(png_ptr)))
16 /* Free all of the memory associated with the png_ptr and info_ptr */
17 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
18 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
20 /* If we get here, we had a problem reading the file */
23 * adjustment), then you can read the entire image (including
24 * pixels) into the info structure with this call:
26 - png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, png_voidp_NULL);
27 + png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);
29 /* At this point you have read the entire image */
34 /* clean up after the read, and free any memory allocated - REQUIRED */
35 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
36 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);