aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-26 21:23:39 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-26 21:23:39 +1000
commit53c95abfb2f3761da31ab70bf6b4a0cbf710dcfb (patch)
tree77a313aacebbdc3069ab0bc703b4b2f8e9ffc2e5 /function.c
parent7fd2ae4ffde8e6ca7e2379a43a5fe403ea3afc33 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/function.c b/function.c
index e0e995cd..45e24c66 100644
--- a/function.c
+++ b/function.c
@@ -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;