mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Remove I/O layer init/deinit
This commit is contained in:
parent
f0ca987d78
commit
07fb43ca8c
17
src/main.c
17
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user