]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/timeq.c
Minor typo in previous commit where returning 0 when it should have been 1 from opser...
[irc/evilnet/x3.git] / src / timeq.c
index e5864932f5f655c3b8025f50f2b0080538232983..10893aa6d5eb0cbc4ba5a6633d53c4eba39c63de 100644 (file)
@@ -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