aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.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 /env_universal_common.c
parent2c95e087b2b4606ae9042c74950693038614db94 (diff)
Drop most 'const's from function prototypes
darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
Diffstat (limited to 'env_universal_common.c')
-rw-r--r--env_universal_common.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/env_universal_common.c b/env_universal_common.c
index 2d39fc51..8040cb4d 100644
--- a/env_universal_common.c
+++ b/env_universal_common.c
@@ -116,8 +116,8 @@ void env_universal_common_init( void (*cb)(int type, const wchar_t *key, const w
/**
Free both key and data
*/
-static void erase( const void *key,
- const void *data )
+static void erase( void *key,
+ void *data )
{
free( (void *)key );
free( (void *)data );
@@ -205,8 +205,8 @@ static void remove_entry( wchar_t *name )
void *k, *v;
hash_remove( &env_universal_var,
name,
- (const void **)&k,
- (const void **)&v );
+ &k,
+ &v );
free( k );
free( v );
}
@@ -498,8 +498,8 @@ message_t *create_message( int type,
Function used with hash_foreach to insert keys of one table into
another
*/
-static void add_key_to_hash( const void *key,
- const void *data,
+static void add_key_to_hash( void *key,
+ void *data,
void *aux )
{
var_uni_entry_t *e = (var_uni_entry_t *)data;
@@ -546,8 +546,8 @@ int env_universal_common_get_export( const wchar_t *name )
\param v the variable value
\param q the queue to add the message to
*/
-static void enqueue( const void *k,
- const void *v,
+static void enqueue( void *k,
+ void *v,
void *q)
{
const wchar_t *key = (const wchar_t *)k;