diff --git a/http/http_event.c b/http/http_event.c
index 02e4346..87b4d3c 100644
--- a/http/http_event.c
+++ b/http/http_event.c
@@ -75,7 +75,7 @@ s32 http_event_base_dispatch (struct event_base *eb)
return event_base_dispatch(eb);
}
-void * http_event_init (void)
+struct event_base * http_event_base_new (void)
{
return event_base_new();
}
diff --git a/lib/kc3/0.1/http/event.kc3 b/lib/kc3/0.1/http/event.kc3
index 77fe018..eb3b1e9 100644
--- a/lib/kc3/0.1/http/event.kc3
+++ b/lib/kc3/0.1/http/event.kc3
@@ -12,7 +12,7 @@ defmodule HTTP.Event do
def dispatch = cfn S32 "event_base_dispatch" (Ptr)
# init() returns a (struct event_base *)
- def init = cfn Ptr "http_event_init" ()
+ def event_base_new = cfn Ptr "event_base_new" ()
def new = cfn Ptr "http_event_new" (Ptr, S32, List, Fn, Tag)