Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
93cbc6cc
Commit
93cbc6cc
authored
Dec 17, 2012
by
JINMEI Tatuya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2429] some style fixes: return ref from proxy method; add 'u' to numeric val
parent
d7a02868
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/lib/dns/rrttl.h
src/lib/dns/rrttl.h
+1
-1
src/lib/dns/tests/rrttl_unittest.cc
src/lib/dns/tests/rrttl_unittest.cc
+1
-1
No files found.
src/lib/dns/rrttl.h
View file @
93cbc6cc
...
...
@@ -293,7 +293,7 @@ public:
///
/// \note At the moment an RRTTL object can have a value larger than
/// this limit. We may revisit it in a future version.
static
const
RRTTL
MAX
()
{
static
const
RRTTL
&
MAX
()
{
static
const
RRTTL
max_ttl
(
0x7fffffff
);
return
(
max_ttl
);
}
...
...
src/lib/dns/tests/rrttl_unittest.cc
View file @
93cbc6cc
...
...
@@ -266,7 +266,7 @@ TEST_F(RRTTLTest, gthan) {
}
TEST_F
(
RRTTLTest
,
maxTTL
)
{
EXPECT_EQ
((
1
<<
31
)
-
1
,
RRTTL
::
MAX
().
getValue
());
EXPECT_EQ
((
1
u
<<
31
)
-
1
,
RRTTL
::
MAX
().
getValue
());
}
// test operator<<. We simply confirm it appends the result of toText().
...
...
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