From 3437ae8288a20bda7d593107cc47efacac82dd61 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Aug 2006 19:49:32 +0000 Subject: Extra comments git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4746 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 61c27a7c9..c3f0a8d7a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -29,15 +29,14 @@ extern ServerConfig* Config; extern time_t TIME; /* Used when comparing CIDR masks for the modulus bits left over */ - -char inverted_bits[8] = { 0x00, /* 00000000 - 0 bits */ - 0x80, /* 10000000 - 1 bits */ - 0xC0, /* 11000000 - 2 bits */ - 0xE0, /* 11100000 - 3 bits */ - 0xF0, /* 11110000 - 4 bits */ - 0xF8, /* 11111000 - 5 bits */ - 0xFC, /* 11111100 - 6 bits */ - 0xFE /* 11111110 - 7 bits */ +const char inverted_bits[8] = { 0x00, /* 00000000 - 0 bits - never actually used */ + 0x80, /* 10000000 - 1 bits */ + 0xC0, /* 11000000 - 2 bits */ + 0xE0, /* 11100000 - 3 bits */ + 0xF0, /* 11110000 - 4 bits */ + 0xF8, /* 11111000 - 5 bits */ + 0xFC, /* 11111100 - 6 bits */ + 0xFE /* 11111110 - 7 bits */ }; /* Match raw bytes using CIDR bit matching, used by higher level MatchCIDR() */ -- cgit v1.2.3