diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-01-09 15:37:49 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-01-09 15:37:49 +0100 |
commit | ba46a8b5c5717cdff25b39a2cd03a461998921c5 (patch) | |
tree | dc5a1a48c70977d1c5b0abe90f068b17fd262f9c /src/lib/hashtable.c | |
parent | e56d24010287127fc6b9c9da8d1f7cf160c50253 (diff) | |
download | ouroboros-ba46a8b5c5717cdff25b39a2cd03a461998921c5.tar.gz ouroboros-ba46a8b5c5717cdff25b39a2cd03a461998921c5.zip |
lib: Revise implementation of list
Adds LGPL license to the ouroboros lists.
Diffstat (limited to 'src/lib/hashtable.c')
-rw-r--r-- | src/lib/hashtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hashtable.c b/src/lib/hashtable.c index 8dcd4ec1..e2b00de0 100644 --- a/src/lib/hashtable.c +++ b/src/lib/hashtable.c @@ -69,7 +69,7 @@ struct htable * htable_create(uint64_t buckets, bool hash_key) } for (i = 0; i < buckets; i++) - INIT_LIST_HEAD(&(tmp->buckets[i])); + list_head_init(&(tmp->buckets[i])); return tmp; } @@ -136,7 +136,7 @@ int htable_insert(struct htable * table, uint64_t key, void * val) entry->key = key; entry->val = val; - INIT_LIST_HEAD(&entry->next); + list_head_init(&entry->next); list_add(&entry->next, &(table->buckets[lookup_key])); |