updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ps3 / png_lib_fix.patch
blob8440cd2b0a83825614ddc27d458828d2ae831d03
1 --- png_textures.c.ORIG 2011-06-17 21:56:49.000000000 +1000
2 +++ png_textures.c 2011-06-17 21:57:03.000000000 +1000
3 @@ -30,13 +30,13 @@
4 info_ptr = png_create_info_struct(png_ptr);
6 if (setjmp(png_jmpbuf(png_ptr))) {
7 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
8 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
9 fclose(fp);
10 return 0;
13 png_init_io(png_ptr, fp);
14 - png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND, png_voidp_NULL);
15 + png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND, NULL);
17 row_pointers = png_get_rows(png_ptr, info_ptr);
19 @@ -69,7 +69,7 @@
20 png_get_rowbytes(png_ptr, info_ptr));
23 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
24 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
25 fclose(fp);
27 return r;