summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/dict.c4
-rw-r--r--src/utils/dict.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/dict.c b/src/utils/dict.c
index 7bd2df7..8dd6adf 100644
--- a/src/utils/dict.c
+++ b/src/utils/dict.c
@@ -25,7 +25,7 @@ typedef struct hubbub_dict_node {
struct hubbub_dict {
hubbub_dict_node *dict; /**< Root of tree */
- hubbub_alloc alloc; /**< Memory (de)allocation function */
+ hubbub_allocator_fn alloc; /**< Memory (de)allocation function */
void *pw; /**< Pointer to client data */
};
@@ -46,7 +46,7 @@ static hubbub_dict_node *hubbub_dict_insert_internal(hubbub_dict *dict,
* HUBBUB_BADPARM on bad parameters,
* HUBBUB_NOMEM on memory exhaustion
*/
-hubbub_error hubbub_dict_create(hubbub_alloc alloc, void *pw,
+hubbub_error hubbub_dict_create(hubbub_allocator_fn alloc, void *pw,
hubbub_dict **dict)
{
hubbub_dict *d;
diff --git a/src/utils/dict.h b/src/utils/dict.h
index 4ea4440..9718542 100644
--- a/src/utils/dict.h
+++ b/src/utils/dict.h
@@ -16,7 +16,7 @@
typedef struct hubbub_dict hubbub_dict;
/* Create a dictionary */
-hubbub_error hubbub_dict_create(hubbub_alloc alloc, void *pw,
+hubbub_error hubbub_dict_create(hubbub_allocator_fn alloc, void *pw,
hubbub_dict **dict);
/* Destroy a dictionary */
hubbub_error hubbub_dict_destroy(hubbub_dict *dict);