]> jfr.im git - solanum.git/blobdiff - modules/m_map.c
Merge pull request #279 from edk0/operhide
[solanum.git] / modules / m_map.c
index da2b6a7b6bb0b7d4b9418d36f065bef3cd245ad1..6ba05e1fa5df20c905bab9311007d635c021f776 100644 (file)
@@ -32,8 +32,8 @@
 
 static const char map_desc[] = "Provides the MAP command to view network topology information";
 
-static int m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int mo_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static void m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static void mo_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 struct Message map_msgtab = {
        "MAP", 0, 0, 0, 0,
@@ -51,7 +51,7 @@ static char buf[BUFSIZE];
 
 /* m_map
 */
-static int
+static void
 m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        if((!IsExemptShide(source_p) && ConfigServerHide.flatten_links) ||
@@ -59,25 +59,22 @@ m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
        {
                flattened_map(client_p);
                sendto_one_numeric(client_p, RPL_MAPEND, form_str(RPL_MAPEND));
-               return 0;
+               return;
        }
 
        dump_map(client_p, &me, buf);
        sendto_one_numeric(client_p, RPL_MAPEND, form_str(RPL_MAPEND));
-       return 0;
 }
 
 /*
 ** mo_map
 */
-static int
+static void
 mo_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        dump_map(client_p, &me, buf);
        scache_send_missing(client_p);
        sendto_one_numeric(client_p, RPL_MAPEND, form_str(RPL_MAPEND));
-
-       return 0;
 }
 
 /*
@@ -160,7 +157,7 @@ flattened_map(struct Client *client_p)
        rb_dlink_node *ptr;
        struct Client *target_p;
        int i, len;
-       int cnt = 0;
+       unsigned long cnt = 0;
 
        /* First display me as the root */
        rb_strlcpy(buf, me.name, BUFSIZE);