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
b945fd1c
Commit
b945fd1c
authored
Jul 02, 2012
by
JINMEI Tatuya
Browse files
[2053] style fixes: constify, long line
parent
efb3f334
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/labelsequence.cc
View file @
b945fd1c
...
...
@@ -129,8 +129,9 @@ LabelSequence::toText(bool omit_final_dot) const {
}
Name
::
NameString
::
const_iterator
np
=
name_
.
ndata_
.
begin
();
Name
::
NameString
::
const_iterator
np_end
=
name_
.
ndata_
.
end
();
unsigned
int
labels
=
last_label_
-
first_label_
;
// use for integrity check
const
Name
::
NameString
::
const_iterator
np_end
=
name_
.
ndata_
.
end
();
// use for integrity check
unsigned
int
labels
=
last_label_
-
first_label_
;
// init with an impossible value to catch error cases in the end:
unsigned
int
count
=
Name
::
MAX_LABELLEN
+
1
;
...
...
@@ -169,7 +170,7 @@ LabelSequence::toText(bool omit_final_dot) const {
}
while
(
count
--
>
0
)
{
uint8_t
c
=
*
np
++
;
const
uint8_t
c
=
*
np
++
;
switch
(
c
)
{
case
0x22
:
// '"'
case
0x28
:
// '('
...
...
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