summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 14:56:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 14:56:47 +0000
commit250c92805cb8a25edd15f04fa673fbfa59c469fe (patch)
treeedb1701000a89e9fd8a224c2618bc81326e52fc5 /include
parent592c13592a731678b9652f4f24babe251ad0a5e8 (diff)
Change counters to unsigned long to prevent overflow to negative counts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 109e1f2be..4d7205b5a 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -55,17 +55,17 @@ template<typename T> inline std::string ConvToStr(const T &in)
class serverstats : public classbase
{
public:
- int statsAccept;
- int statsRefused;
- int statsUnknown;
- int statsCollisions;
- int statsDns;
- int statsDnsGood;
- int statsDnsBad;
- int statsConnects;
- int statsSent;
- int statsRecv;
- int BoundPortCount;
+ unsigned long statsAccept;
+ unsigned long statsRefused;
+ unsigned long statsUnknown;
+ unsigned long statsCollisions;
+ unsigned long statsDns;
+ unsigned long statsDnsGood;
+ unsigned long statsDnsBad;
+ unsigned long statsConnects;
+ unsigned long statsSent;
+ unsigned long statsRecv;
+ unsigned long BoundPortCount;
serverstats()
{