s/TRANSLATORS/Translators/ in xgettext comments
[neverball] / share / image.c
index 3293ec3..c5d574f 100644 (file)
@@ -26,7 +26,7 @@
 
 /*---------------------------------------------------------------------------*/
 
-void image_snap(char *filename)
+void image_snap(const char *filename)
 {
     FILE       *filep  = NULL;
     png_structp writep = NULL;
@@ -69,7 +69,7 @@ void image_snap(char *filename)
 
             /* Allocate and initialize the row pointers. */
 
-            if ((bytep = png_malloc(writep, h * sizeof (png_bytep))))
+            if ((bytep = (png_bytep *) png_malloc(writep, h * sizeof (png_bytep))))
             {
                 for (i = 0; i < h; ++i)
                     bytep[h - i - 1] = (png_bytep) (p + i * w * 3);