diff options
author | axel <axel@liljencrantz.se> | 2006-03-26 21:23:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-03-26 21:23:39 +1000 |
commit | 53c95abfb2f3761da31ab70bf6b4a0cbf710dcfb (patch) | |
tree | 77a313aacebbdc3069ab0bc703b4b2f8e9ffc2e5 /function.c | |
parent | 7fd2ae4ffde8e6ca7e2379a43a5fe403ea3afc33 (diff) |
Change how a few pointer are supplied to functions, removes warnings about breaking aliasing rules
darcs-hash:20060326112339-ac50b-eb135567f6a6183e5dbc310c093d2139ecc8fa4b.gz
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |