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; }