From 69ae63ecd25c63b4f6d446fae28af9c8d1caac4d Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 19 Jul 2006 15:03:26 +0000 Subject: Change stats recv/send to double, so they can hold truly massive numbers of transferred bytes (they would overflow after about 6 weeks on a busy net otherwise) Fix some warnings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4450 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 793e930ff..b9d5fee5f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -119,7 +119,7 @@ int OpenTCPSocket() bool HasPort(int port, char* addr) { - for (int count = 0; count < ServerInstance->stats->BoundPortCount; count++) + for (unsigned long count = 0; count < ServerInstance->stats->BoundPortCount; count++) { if ((port == Config->ports[count]) && (!strcasecmp(Config->addrs[count],addr))) { -- cgit v1.2.3