summaryrefslogtreecommitdiff
path: root/src/gib_hash.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-05-06 19:10:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-05-06 19:10:22 +0200
commit03b4faf6d71f52568a0e5b61552b6c0d44b71b62 (patch)
tree6477350a4cb9627658a2cde9511004c830f9c60e /src/gib_hash.c
parentf0fd0413e2904e0824707d866a044341184bbe13 (diff)
remove gib_utils, the same functionality is provided by utils already
Diffstat (limited to 'src/gib_hash.c')
-rw-r--r--src/gib_hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gib_hash.c b/src/gib_hash.c
index 054161d..a378b9c 100644
--- a/src/gib_hash.c
+++ b/src/gib_hash.c
@@ -24,11 +24,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "gib_hash.h"
-#include "gib_utils.h"
+#include "utils.h"
+#include "debug.h"
gib_hash_node *gib_hash_node_new(char *key, void *data)
{
- gib_hash_node *node = malloc(sizeof(gib_hash_node));
+ gib_hash_node *node = emalloc(sizeof(gib_hash_node));
node->key = strdup(key);
GIB_LIST(node)->data = data;
GIB_LIST(node)->next = NULL;
@@ -53,7 +54,7 @@ void gib_hash_node_free_and_data(gib_hash_node *node)
gib_hash *gib_hash_new()
{
- gib_hash *hash = malloc(sizeof(gib_hash));
+ gib_hash *hash = emalloc(sizeof(gib_hash));
hash->base = gib_hash_node_new("__gib_hash_new",NULL);
return hash;
}