From 1f9fed85566a8eac647f0cd62db5380113ea0ef0 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 20 Aug 2006 13:46:30 +0000 Subject: Make hash_add() return success/failure bool svn path=/trunk/netsurf/; revision=2872 --- utils/hashtable.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/hashtable.h') diff --git a/utils/hashtable.h b/utils/hashtable.h index 8f9df5009..44c40d7c8 100644 --- a/utils/hashtable.h +++ b/utils/hashtable.h @@ -10,6 +10,8 @@ #ifndef _NETSURF_HASH_H_ #define _NETSURF_HASH_H_ +#include + struct hash_entry { char *key; char *value; @@ -23,7 +25,7 @@ struct hash_table { struct hash_table *hash_create(unsigned int chains); void hash_destroy(struct hash_table *ht); -void hash_add(struct hash_table *ht, const char *key, const char *value); +bool hash_add(struct hash_table *ht, const char *key, const char *value); const char *hash_get(struct hash_table *ht, const char *key); unsigned int hash_string_fnv(const char *datum); -- cgit v1.2.3