Remove I/O layer init/deinit

This commit is contained in:
Julien BLACHE 2009-05-03 12:09:25 +02:00
parent f0ca987d78
commit 07fb43ca8c
1 changed files with 0 additions and 17 deletions

View File

@ -89,7 +89,6 @@
#include "filescanner.h" #include "filescanner.h"
#include "httpd.h" #include "httpd.h"
#include "db-generic.h" #include "db-generic.h"
#include "io.h"
#include "mdns_avahi.h" #include "mdns_avahi.h"
@ -124,7 +123,6 @@ struct event_base *evbase_main;
* Forwards * Forwards
*/ */
static void usage(char *program); static void usage(char *program);
static void main_io_errhandler(int level, char *msg);
/** /**
* Print usage information to stdout * 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 static void
signal_cb(int fd, short event, void *arg) signal_cb(int fd, short event, void *arg)
{ {
@ -439,9 +426,6 @@ int main(int argc, char *argv[]) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
io_init();
io_set_errhandler(main_io_errhandler);
/* read the configfile, if specified, otherwise /* read the configfile, if specified, otherwise
* try defaults */ * try defaults */
config.stats.start_time=start_time=(int)time(NULL); 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"); DPRINTF(E_LOG,L_MAIN,"Done!\n");
io_deinit();
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }