From 8a7db130d7b896fb10b3ef295775b8dc88f32b1e Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 13 Jan 2010 07:24:00 +0000 Subject: [PATCH] Check error from event_init() to eliminate warning on strict build --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index c8bab02..fa20c2d 100644 --- a/src/main.c +++ b/src/main.c @@ -720,7 +720,8 @@ int main(int argc, char *argv[]) /* initialize subsystems, order important */ srandom(time(NULL) ^ getpid()); - event_init(); + if (!event_init()) + fatal("event_init() failed"); signal_setup(); janitor_setup(); stats_setup(); -- 2.40.0