X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/1136f709ef8add5fa9ba8663db910003362e1bd2..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/timeq.c diff --git a/src/timeq.c b/src/timeq.c index e586493..10893aa 100644 --- a/src/timeq.c +++ b/src/timeq.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, @@ -30,7 +30,7 @@ struct timeq_entry { }; static void -timeq_cleanup(void) +timeq_cleanup(UNUSED_ARG(void *extra)) { timeq_del(0, 0, 0, TIMEQ_IGNORE_WHEN|TIMEQ_IGNORE_FUNC|TIMEQ_IGNORE_DATA); heap_delete(timeq); @@ -41,7 +41,7 @@ static void timeq_init(void) { timeq = heap_new(ulong_comparator); - reg_exit_func(timeq_cleanup); + reg_exit_func(timeq_cleanup, NULL); } unsigned long