X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/37c8e812aa1c75989633a3c8c3afe3490d1ad1d6..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/main.c diff --git a/src/main.c b/src/main.c index a68c488..e411bc6 100644 --- a/src/main.c +++ b/src/main.c @@ -5,7 +5,7 @@ * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -237,7 +237,7 @@ int main(int argc, char *argv[]) services_argv = argv; atexit(call_exit_funcs); - reg_exit_func(main_shutdown); + reg_exit_func(main_shutdown, NULL); log_init(); MAIN_LOG = log_register_type("x3", "file:main.log"); @@ -263,7 +263,7 @@ int main(int argc, char *argv[]) modules_finalize(); /* The first exit func to be called *should* be saxdb_write_all(). */ - reg_exit_func(saxdb_write_all); + reg_exit_func(saxdb_write_all, NULL); if (replay_file) { char *msg; log_module(MAIN_LOG, LOG_INFO, "Beginning replay...");