summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-02 20:08:19 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-02 20:08:19 +0000
commit83ace481ce160a577910dc07dae0ba07f9e3fa84 (patch)
tree373a5b3bbdb121b83061bad852a45114f03cdfcc
parent48ee4fb9a5e373df8a4ce9bd69159f41a0fba81d (diff)
- motd.c, motd.h: fix compile warnings
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2169 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--include/motd.h2
-rw-r--r--src/motd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/motd.h b/include/motd.h
index 37c770d..b8b715a 100644
--- a/include/motd.h
+++ b/include/motd.h
@@ -49,7 +49,7 @@ struct Motd
class name if type==MOTD_CLASS,
text IP mask if type==MOTD_IPMASK. */
struct irc_ssaddr address; /**< Address if type==MOTD_IPMASK. */
- unsigned int addrbits; /**< Number of bits checked in Motd::address. */
+ int addrbits; /**< Number of bits checked in Motd::address. */
unsigned int maxcount; /**< Number of lines for MOTD. */
struct MotdCache *cache; /**< MOTD cache entry. */
};
diff --git a/src/motd.c b/src/motd.c
index 6ca2ff8..889d04e 100644
--- a/src/motd.c
+++ b/src/motd.c
@@ -257,11 +257,13 @@ motd_lookup(struct Client *client_p)
if (match_ipv4(&client_p->localClient->ip, &motd->address, motd->addrbits))
return motd;
break;
+#ifdef IPV6
case MOTD_IPMASKV6:
if (client_p->localClient->aftype == AF_INET6)
if (match_ipv6(&client_p->localClient->ip, &motd->address, motd->addrbits))
return motd;
break;
+#endif
default: break;
}
}