diff libvo/vo_png.c @ 30122:1772a5171ac7

Fix function declarations to avoid casting function pointers.
author reimar
date Fri, 01 Jan 2010 13:18:49 +0000
parents 0f1b5b68af32
children 0f5f75b4a015
line wrap: on
line diff
--- a/libvo/vo_png.c	Fri Jan 01 12:54:09 2010 +0000
+++ b/libvo/vo_png.c	Fri Jan 01 13:18:49 2010 +0000
@@ -283,8 +283,9 @@
 
 static void check_events(void){}
 
-static int int_zero_to_nine(int *sh)
+static int int_zero_to_nine(void *value)
 {
+    int *sh = value;
     if ( (*sh < 0) || (*sh > 9) )
         return 0;
     return 1;
@@ -292,7 +293,7 @@
 
 static const opt_t subopts[] = {
     {"alpha", OPT_ARG_BOOL, &use_alpha, NULL},
-    {"z",   OPT_ARG_INT, &z_compression, (opt_test_f)int_zero_to_nine},
+    {"z",   OPT_ARG_INT, &z_compression, int_zero_to_nine},
     {"outdir",      OPT_ARG_MSTRZ,  &png_outdir,           NULL},
     {NULL}
 };