diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-04 21:00:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-04 21:02:06 -0700 |
commit | b2d0f04a50f1444f9d62d11636a28c89951f0f40 (patch) | |
tree | ea962d23f843a8d20401ddf0ec978c5914549111 /hash.h | |
parent | 0f4f6462597841e5f8470571d56cfda61144ee8f (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Does not fix all of them since some lists contain constant strings and
some contain dynamically allocated strings that need to be freed later.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ typedef HashBucketPtr* HashTablePtr; HashTablePtr makeHashTable(void); void destroyHashTable(HashTablePtr table); -char *getHash(HashTablePtr table, char *key); +char *getHash(HashTablePtr table, const char *key); int putHash(HashTablePtr table, char *key, char *value, int prio); int hashElements(HashTablePtr table); HashBucketPtr *hashArray(HashTablePtr table, int value_first); |