Fix compiler int<->ptr conversion warnings
From
a50e18952592f9eca3462d3fd4a9a5477ac84266 Mon Sep 17 00:00:00 2001
From: Benny Halevy <bhalevy@panasas.com>
Date: Sun, 12 Apr 2009 13:38:01 +0300
Subject: [PATCH] Fix compiler int<->ptr conversion warnings
gcc (GCC) 4.3.0
20080428 (Red Hat 4.3.0-8)
prints the following warnings on x86_64. All about converting
int to void * or vice versa.
check_leaks.c: In function ‘match_free’:
check_leaks.c:104: warning: cast from pointer to integer of different size
check_leaks.c: In function ‘register_free_funcs’:
check_leaks.c:221: warning: cast to pointer from integer of different size
check_leaks.c: In function ‘register_put_funcs’:
check_leaks.c:247: warning: cast to pointer from integer of different size
check_memory.c: In function ‘match_free_func’:
check_memory.c:197: warning: cast from pointer to integer of different size
check_memory.c: In function ‘register_funcs_from_file’:
check_memory.c:359: warning: cast to pointer from integer of different size
check_overflow.c: In function ‘match_limitted’:
check_overflow.c:128: warning: cast from pointer to integer of different size
Signed-off-by: Benny Halevy <bhalevy@panasas.com>