X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/1136f709ef8add5fa9ba8663db910003362e1bd2..b8036263460c7bb538684caafa7309c360734155:/src/mail-common.c diff --git a/src/mail-common.c b/src/mail-common.c index 84a9cf4..2579b62 100644 --- a/src/mail-common.c +++ b/src/mail-common.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, @@ -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);