Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
bd7e5672
Commit
bd7e5672
authored
May 01, 2013
by
JINMEI Tatuya
Browse files
[2850] constify
parent
85873bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/zone_table_segment_mapped.cc
View file @
bd7e5672
...
@@ -121,7 +121,7 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode,
...
@@ -121,7 +121,7 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode,
// closed. Check that its checksum is consistent.
// closed. Check that its checksum is consistent.
uint32_t
*
checksum
=
static_cast
<
uint32_t
*>
uint32_t
*
checksum
=
static_cast
<
uint32_t
*>
(
segment
->
getNamedAddress
(
"zone_table_checksum"
));
(
segment
->
getNamedAddress
(
"zone_table_checksum"
));
uint32_t
saved_checksum
=
*
checksum
;
const
uint32_t
saved_checksum
=
*
checksum
;
// First, clear the checksum so that getCheckSum() returns
// First, clear the checksum so that getCheckSum() returns
// a consistent value.
// a consistent value.
*
checksum
=
0
;
*
checksum
=
0
;
...
...
Write
Preview
Supports
Markdown
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