aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-13 07:47:42 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-13 07:47:42 +1000
commit9aee2b7c9c412e9e0bb2ddc4c8f6e27af5be1de8 (patch)
tree7a1f1fcf335c15a3eae6c1b5b4fac57a1bd9f681 /function.c
parent2c95e087b2b4606ae9042c74950693038614db94 (diff)
Drop most 'const's from function prototypes
darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
Diffstat (limited to 'function.c')
-rw-r--r--function.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/function.c b/function.c
index 21fe6a95..6450cb35 100644
--- a/function.c
+++ b/function.c
@@ -116,7 +116,7 @@ static void autoload_names( array_list_t *out, int get_hidden )
}
closedir(dir);
}
- al_foreach( &path_list, (void (*)(const void *))&free );
+ al_foreach( &path_list, &free );
al_destroy( &path_list );
}
@@ -124,8 +124,8 @@ static void autoload_names( array_list_t *out, int get_hidden )
/**
Free all contents of an entry to the function hash table
*/
-static void clear_function_entry( const void *key,
- const void *data )
+static void clear_function_entry( void *key,
+ void *data )
{
function_data_t *d = (function_data_t *)data;
free( (void *)d->cmd );
@@ -209,7 +209,7 @@ int function_exists( const wchar_t *cmd )
void function_remove( const wchar_t *name )
{
void *key;
- const void *dv;
+ void *dv;
function_data_t *d;
event_t ev;
@@ -221,7 +221,7 @@ void function_remove( const wchar_t *name )
hash_remove( &function,
name,
- (const void **) &key,
+ &key,
&dv );
d=(function_data_t *)dv;
@@ -303,8 +303,8 @@ static int al_contains_str( array_list_t *list, const wchar_t * str )
/**
Helper function for removing hidden functions
*/
-static void get_names_internal( const void *key,
- const void *val,
+static void get_names_internal( void *key,
+ void *val,
void *aux )
{
wchar_t *name = (wchar_t *)key;
@@ -319,9 +319,9 @@ static void get_names_internal( const void *key,
/**
Helper function for removing hidden functions
*/
-static void get_names_internal_all( const void *key,
- const void *val,
- void *aux )
+static void get_names_internal_all( void *key,
+ void *val,
+ void *aux )
{
wchar_t *name = (wchar_t *)key;