X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/be2c97a53a1b69de5359c00a308730c0001ad758..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/timeq.c diff --git a/src/timeq.c b/src/timeq.c index 057c190..10893aa 100644 --- a/src/timeq.c +++ b/src/timeq.c @@ -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