]> jfr.im git - solanum.git/blobdiff - modules/sno_routing.c
ircd/packet.c: make function definition consistent with declaration (#301)
[solanum.git] / modules / sno_routing.c
index f3f7c7ad3f9199dc8be74089e975b626cc4089df..271a1e8d5dbaa237261c558564006443a5cfdf65 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  charybdis: an advanced Internet Relay Chat Daemon(ircd).
+ *  Solanum: a slightly advanced ircd
  *  sno_routing.c: Shows notices about netjoins and netsplits
  *
  *  Copyright (c) 2005-2006 Jilles Tjoelker <jilles-at-stack.nl>
@@ -27,8 +27,6 @@
  *  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  *  IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  *  POSSIBILITY OF SUCH DAMAGE.
- *
- *  $Id: sno_routing.c 1172 2006-04-18 13:49:18Z jilles $
  */
 
 #include "stdinc.h"
 #include "ircd.h"
 #include "send.h"
 
-static void h_nn_server_eob(struct Client *);
-static void h_nn_client_exit(hook_data_client_exit *);
+static void h_nn_server_eob(void *);
+static void h_nn_client_exit(void *);
 
 mapi_hfn_list_av1 nn_hfnlist[] = {
-       { "server_eob", (hookfn) h_nn_server_eob },
-       { "client_exit", (hookfn) h_nn_client_exit },
+       { "server_eob", h_nn_server_eob },
+       { "client_exit", h_nn_client_exit },
        { NULL, NULL }
 };
 
-DECLARE_MODULE_AV1(networknotice, NULL, NULL, NULL, NULL, nn_hfnlist, "$Revision: 1172 $");
+static const char sno_desc[] = "Show notices about netjoins and netsplits";
+
+DECLARE_MODULE_AV2(networknotice, NULL, NULL, NULL, NULL, nn_hfnlist, NULL, NULL, sno_desc);
 
 /*
  * count_mark_downlinks
@@ -73,8 +73,9 @@ count_mark_downlinks(struct Client *server_p, int *pservcount, int *pusercount)
 }
 
 static void
-h_nn_server_eob(struct Client *source_p)
+h_nn_server_eob(void *data)
 {
+       struct Client *source_p = data;
        int s = 0, u = 0;
 
        if (IsFloodDone(source_p))
@@ -86,8 +87,9 @@ h_nn_server_eob(struct Client *source_p)
 }
 
 static void
-h_nn_client_exit(hook_data_client_exit *hdata)
+h_nn_client_exit(void *data)
 {
+       hook_data_client_exit *hdata = data;
        struct Client *source_p;
        int s = 0, u = 0;
        char *fromnick;