Commit f685e5c0 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac998] constify

parent 5a19ee14
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment