summaryrefslogtreecommitdiffstats
path: root/src/ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ref.c')
-rw-r--r--src/ref.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ref.c b/src/ref.c
index d43df61..8b6cf17 100644
--- a/src/ref.c
+++ b/src/ref.c
@@ -2,14 +2,16 @@
#include "util.h"
struct ref *
-ref_init(void *data)
+ref_alloc(void *data)
{
struct ref *ref;
ref = malloc(sizeof(struct ref));
if (!ref) return NULL;
+
ref->link = LINK_EMPTY;
ref->data = data;
+
return ref;
}