summaryrefslogtreecommitdiffstats
path: root/subopt-helper.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-01 13:18:49 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-01 13:18:49 +0000
commitf102ac7a8c62491761b7b3d32baa87dcb665f9ed (patch)
tree27ad6e8e197f81258631b4b86b3938c870e35a84 /subopt-helper.c
parent5f684e1b32cc052edf33d8c0ff5ead106e98e680 (diff)
downloadmpv-f102ac7a8c62491761b7b3d32baa87dcb665f9ed.tar.bz2
mpv-f102ac7a8c62491761b7b3d32baa87dcb665f9ed.tar.xz
Fix function declarations to avoid casting function pointers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.c')
-rw-r--r--subopt-helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/subopt-helper.c b/subopt-helper.c
index 50283cfbf3..e40f9f40d0 100644
--- a/subopt-helper.c
+++ b/subopt-helper.c
@@ -300,15 +300,17 @@ static char const * parse_str( char const * str, strarg_t * const valp )
/*** common test functions ***/
/** \brief Test if i is not negative */
-int int_non_neg( int * i )
+int int_non_neg(void *iptr)
{
+ int *i = iptr;
if ( *i < 0 ) { return 0; }
return 1;
}
/** \brief Test if i is positive. */
-int int_pos( int * i )
+int int_pos(void *iptr)
{
+ int *i = iptr;
if ( *i > 0 ) { return 1; }
return 0;