From 07fb43ca8cfe0b38721e65557305fb1183db82c9 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 3 May 2009 12:09:25 +0200 Subject: [PATCH] Remove I/O layer init/deinit --- src/main.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main.c b/src/main.c index 1984c412..096db9ae 100644 --- a/src/main.c +++ b/src/main.c @@ -89,7 +89,6 @@ #include "filescanner.h" #include "httpd.h" #include "db-generic.h" -#include "io.h" #include "mdns_avahi.h" @@ -124,7 +123,6 @@ struct event_base *evbase_main; * Forwards */ static void usage(char *program); -static void main_io_errhandler(int level, char *msg); /** * Print usage information to stdout @@ -267,17 +265,6 @@ daemonize(int foreground, char *runas, char *pidfile) } -/** - * set up an errorhandler for io errors - * - * @param int level of the error (0=fatal, 9=debug) - * @param msg the text error - */ -void main_io_errhandler(int level, char *msg) { - DPRINTF(level,L_MAIN,"%s",msg); -} - - static void signal_cb(int fd, short event, void *arg) { @@ -439,9 +426,6 @@ int main(int argc, char *argv[]) { exit(EXIT_FAILURE); } - io_init(); - io_set_errhandler(main_io_errhandler); - /* read the configfile, if specified, otherwise * try defaults */ config.stats.start_time=start_time=(int)time(NULL); @@ -664,7 +648,6 @@ int main(int argc, char *argv[]) { DPRINTF(E_LOG,L_MAIN,"Done!\n"); - io_deinit(); return EXIT_SUCCESS; }