]> granicus.if.org Git - pgbouncer/commitdiff
Check error from event_init() to eliminate warning on strict build
authorMarko Kreen <markokr@gmail.com>
Wed, 13 Jan 2010 07:24:00 +0000 (07:24 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 13 Jan 2010 07:24:00 +0000 (07:24 +0000)
src/main.c

index c8bab0296e1bf9ce28d9deef7b58cb73f43c7663..fa20c2d4e1d220b4aa5bbfbeca29b8f7a300e94a 100644 (file)
@@ -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();