Change how a few pointer are supplied to functions, removes warnings about breaking aliasing rules

darcs-hash:20060326112339-ac50b-eb135567f6a6183e5dbc310c093d2139ecc8fa4b.gz
This commit is contained in:
axel
2006-03-26 21:23:39 +10:00
parent 7fd2ae4ffd
commit 53c95abfb2
2 changed files with 11 additions and 3 deletions

View File

@@ -195,14 +195,17 @@ int function_exists( const wchar_t *cmd )
void function_remove( const wchar_t *name )
{
void *key;
const void *dv;
function_data_t *d;
event_t ev;
hash_remove( &function,
name,
(const void **) &key,
(const void **)&d );
&dv );
d=(function_data_t *)dv;
if( !key )
return;