summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5946a8c..1d0ee2c 100644
--- a/main.c
+++ b/main.c
@@ -13,6 +13,7 @@ FILE *stream_g;
static request_t buffer_g;
+int callbacks_init(void);
void *get_assoc_cb(int opcode);
/* returns a socket listing to port or -1 if something failed */
@@ -81,6 +82,8 @@ int main(int argc, char *argv[])
int sock = bind_socket((argc < 2) ? 4333 : atoi(argv[1]));
+ callbacks_init();
+
if (sock >= 0) {
signal(SIGPIPE, SIG_IGN);