diff subopt-helper.c @ 30122:1772a5171ac7

Fix function declarations to avoid casting function pointers.
author reimar
date Fri, 01 Jan 2010 13:18:49 +0000
parents 3b9429f763e2
children 0f5f75b4a015
line wrap: on
line diff
--- a/subopt-helper.c	Fri Jan 01 12:54:09 2010 +0000
+++ b/subopt-helper.c	Fri Jan 01 13:18:49 2010 +0000
@@ -300,15 +300,17 @@
 /*** 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;