aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.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 /complete.c
parent2c95e087b2b4606ae9042c74950693038614db94 (diff)
Drop most 'const's from function prototypes
darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
Diffstat (limited to 'complete.c')
-rw-r--r--complete.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/complete.c b/complete.c
index d21df125..661ba5eb 100644
--- a/complete.c
+++ b/complete.c
@@ -324,7 +324,7 @@ static void complete_free_entry( complete_entry *c )
/**
Free hash key and hash value
*/
-static void clear_hash_entry( const void *key, const void *data )
+static void clear_hash_entry( void *key, void *data )
{
free( (void *)key );
free( (void *)data );
@@ -918,7 +918,7 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
}
}
- al_foreach( &l, (void (*)(const void *))&free );
+ al_foreach( &l, &free );
al_destroy( &l );
}
@@ -1223,7 +1223,7 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp )
hash_destroy( &lookup );
al_foreach( &list,
- (void(*)(const void *))&free );
+ &free );
al_destroy( &list );
free( lookup_cmd );
}
@@ -1454,7 +1454,7 @@ static void complete_from_args( const wchar_t *str,
copy_strings_with_prefix( comp_out, str, desc, 0, &possible_comp );
- al_foreach( &possible_comp, (void (*)(const void *))&free );
+ al_foreach( &possible_comp, &free );
al_destroy( &possible_comp );
}