diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 20:05:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 20:05:27 -0700 |
commit | 9f0f4a2c5495eec2d81a4381fb962fad93b2ddde (patch) | |
tree | 7608fb1bc62b2df1c8bcb4f549a35607a37e905b /util.h | |
parent | 40615f52b8fe7478599ce4948ccc751aa0a34397 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |