Browse Source

[trac998] constify

JINMEI Tatuya 14 years ago
parent
commit
f685e5c06c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/acl/ip_check.h

+ 1 - 1
src/lib/acl/ip_check.h

@@ -300,7 +300,7 @@ private:
 
         // Set the maximum number of bits allowed in the mask, and request
         // that number of bits if no prefix length was given in the constructor.
-        int maxmask = 8 * ((family_ == AF_INET) ? IPV4_SIZE : IPV6_SIZE);
+        const int maxmask = 8 * ((family_ == AF_INET) ? IPV4_SIZE : IPV6_SIZE);
         if (requested < 0) {
             requested = maxmask;
         }