1 $NetBSD: patch-ac,v 1.1 2010/06/13 22:43:55 wiz Exp $
3 --- src/pngutil.c.orig 2006-12-10 15:50:19.000000000 +0000
5 @@ -145,7 +145,7 @@ int png_read(struct image **dest, char *
7 error("Can't allocate memory");
9 - png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
10 + png_destroy_read_struct(&png_ptr, NULL, NULL);
14 @@ -159,7 +159,7 @@ int png_read(struct image **dest, char *
15 error("libpng error");
16 /* Free all of the memory associated with the png_ptr and
18 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
19 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
21 /* If we get here, we had a problem reading the file */
23 @@ -185,7 +185,7 @@ int png_read(struct image **dest, char *
24 PNG_TRANSFORM_PACKING |
27 - png_read_png(png_ptr, info_ptr, png_transforms, png_voidp_NULL);
28 + png_read_png(png_ptr, info_ptr, png_transforms, NULL);
30 /* At this point you have read the entire image */
31 img=png_alloc( png_get_image_width(png_ptr, info_ptr),
32 @@ -209,7 +209,7 @@ int png_read(struct image **dest, char *
35 /* Clean up after the read, and free any memory allocated - REQUIRED */
36 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
37 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
41 @@ -253,7 +253,7 @@ int png_write(struct image *img, char *f
42 if (info_ptr == NULL) {
43 error("Can't allocate memory");
45 - png_destroy_write_struct(&png_ptr, png_infopp_NULL);
46 + png_destroy_write_struct(&png_ptr, NULL);