]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mail-common.c
Couple of srvx updates.
[irc/evilnet/x3.git] / src / mail-common.c
index 84a9cf40da6200f4b24e132f4193cd3fecf3ec09..2579b6283bfc2cafc0220979f448251240c6bb1e 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,
@@ -138,7 +138,7 @@ mail_saxdb_write(struct saxdb_context *ctx) {
 }
 
 static void
-mail_common_cleanup(void)
+mail_common_cleanup(UNUSED_ARG(void *extra))
 {
     dict_delete(prohibited_addrs);
     dict_delete(prohibited_masks);
@@ -153,7 +153,7 @@ mail_common_init(void)
     prohibited_masks = dict_new();
     dict_set_free_keys(prohibited_masks, free);
     dict_set_free_data(prohibited_masks, free);
-    reg_exit_func(mail_common_cleanup);
+    reg_exit_func(mail_common_cleanup, NULL);
     saxdb_register("sendmail", mail_saxdb_read, mail_saxdb_write);
     mail_module = module_register("sendmail", MAIN_LOG, "mail.help", NULL);
     modcmd_register(mail_module, "banemail", cmd_banemail, 3, 0, "level", "601", NULL);