}
-static unsigned do_inits(int argc, char **argv)
+static unsigned server_init(int argc, char **argv)
{
/* connector's address information */
int sockfd;
/* become daemon */
if (conf.daemon_given)
daemon_init();
- PARA_NOTICE_LOG("%s", "initializing virtual streaming system\n");
+ PARA_NOTICE_LOG("initializing audio format handlers\n");
afh_init();
+ PARA_NOTICE_LOG("initializing virtual streaming system\n");
vss_init();
mmd->server_pid = getpid();
setup_signal_handling();
+ PARA_NOTICE_LOG("initializing the audio file selector\n");
init_afs();
mmd_lock();
/* init network socket */
- PARA_NOTICE_LOG("%s", "initializing tcp command socket\n");
+ PARA_NOTICE_LOG("initializing tcp command socket\n");
sockfd = init_network();
- PARA_NOTICE_LOG("%s", "init complete\n");
+ PARA_NOTICE_LOG("server init complete\n");
return sockfd;
}
struct timeval *timeout;
valid_fd_012();
- sockfd = do_inits(argc, argv);
+ sockfd = server_init(argc, argv);
repeat:
FD_ZERO(&rfds);
FD_ZERO(&wfds);