summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-09-09 20:05:27 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-09-09 20:05:27 -0700
commit9f0f4a2c5495eec2d81a4381fb962fad93b2ddde (patch)
tree7608fb1bc62b2df1c8bcb4f549a35607a37e905b /util.h
parent40615f52b8fe7478599ce4948ccc751aa0a34397 (diff)
Copious const cleanup
Removes 1554 gcc warnings of "discards ‘const’ qualifier" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 9717589..0bbe93d 100644
--- a/util.h
+++ b/util.h
@@ -64,7 +64,7 @@ struct _hash_table {
hash_table *hash_new(unsigned int length, hash_compare compare);
hash_entry *hash_put(hash_table *hash, hash_entry *entry);
hash_entry *hash_get(hash_table *hash, hash_key *name);
-hash_entry * hash_check(hash_table *hash, char *name, unsigned int length);
+hash_entry * hash_check(hash_table *hash, const char *name, unsigned int length);
void hash_rem(hash_table *hash, hash_entry *entry);
/* Removes from hash table but doesn't release any memory */
hash_entry *hash_rem_no_free(hash_table *hash, hash_entry *entry);