summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/Hash.c2
-rw-r--r--rts/Hash.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/rts/Hash.c b/rts/Hash.c
index 1b193e3247..1f8c0ca00c 100644
--- a/rts/Hash.c
+++ b/rts/Hash.c
@@ -303,7 +303,7 @@ insertHashTable(HashTable *table, StgWord key, const void *data)
}
void *
-removeHashTable(HashTable *table, StgWord key, void *data)
+removeHashTable(HashTable *table, StgWord key, const void *data)
{
int bucket;
int segment;
diff --git a/rts/Hash.h b/rts/Hash.h
index 2d0c5588c5..ebefd6f6c4 100644
--- a/rts/Hash.h
+++ b/rts/Hash.h
@@ -22,7 +22,7 @@ typedef struct hashtable HashTable; /* abstract */
HashTable * allocHashTable ( void );
void insertHashTable ( HashTable *table, StgWord key, const void *data );
void * lookupHashTable ( const HashTable *table, StgWord key );
-void * removeHashTable ( HashTable *table, StgWord key, void *data );
+void * removeHashTable ( HashTable *table, StgWord key, const void *data );
int keyCountHashTable (HashTable *table);