Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
f685e5c0
Commit
f685e5c0
authored
Jun 23, 2011
by
JINMEI Tatuya
Browse files
[trac998] constify
parent
5a19ee14
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/acl/ip_check.h
View file @
f685e5c0
...
@@ -300,7 +300,7 @@ private:
...
@@ -300,7 +300,7 @@ private:
// Set the maximum number of bits allowed in the mask, and request
// 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.
// 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
)
{
if
(
requested
<
0
)
{
requested
=
maxmask
;
requested
=
maxmask
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment