aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.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 /expand.c
parent2c95e087b2b4606ae9042c74950693038614db94 (diff)
Drop most 'const's from function prototypes
darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/expand.c b/expand.c
index 9b17373e..4f99428d 100644
--- a/expand.c
+++ b/expand.c
@@ -837,7 +837,7 @@ static int expand_variables( wchar_t *in, array_list_t *out, int last_idx )
}
}
/* Free remaining strings in list l and truncate it */
- al_foreach( &var_item_list, (void (*)(const void *))&free );
+ al_foreach( &var_item_list, &free );
al_truncate( &var_item_list, 0 );
/* Add items from list idx back to list l */
al_push_all( &var_item_list, var_idx_list );
@@ -1163,7 +1163,7 @@ static int expand_subshell( wchar_t *in, array_list_t *out )
if( exec_subshell( subcmd, &sub_res)==-1 )
{
- al_foreach( &sub_res, (void (*)(const void *))&free );
+ al_foreach( &sub_res, &free );
al_destroy( &sub_res );
free( subcmd );
return 0;
@@ -1202,7 +1202,7 @@ static int expand_subshell( wchar_t *in, array_list_t *out )
al_destroy( &sub_res );
- al_foreach( &tail_expand, (void (*)(const void *))&free );
+ al_foreach( &tail_expand, &free );
al_destroy( &tail_expand );
free( subcmd );
@@ -1630,7 +1630,7 @@ wchar_t *expand_one( void *context, wchar_t *string, int flags )
}
}
- al_foreach( &l, (void(*)(const void *))&free );
+ al_foreach( &l, &free );
al_destroy( &l );
halloc_register( context, one );