Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
8dda0f67
Commit
8dda0f67
authored
Jun 11, 2013
by
Mark Andrews
Browse files
remove unnecessary DE_CONST; pass in as (const void *)
parent
7422f1f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/isc/crc64.c
View file @
8dda0f67
...
...
@@ -122,15 +122,13 @@ isc_crc64_init(isc_uint64_t *crc) {
}
void
isc_crc64_update
(
isc_uint64_t
*
crc
,
const
isc_uint8_t
*
data
,
size_t
len
)
{
unsigned
char
*
p
;
isc_crc64_update
(
isc_uint64_t
*
crc
,
const
void
*
data
,
size_t
len
)
{
const
unsigned
char
*
p
=
data
;
int
i
;
REQUIRE
(
crc
!=
NULL
);
REQUIRE
(
data
!=
NULL
);
DE_CONST
(
data
,
p
);
while
(
len
--
>
0
)
{
i
=
((
int
)
(
*
crc
>>
56
)
^
*
p
++
)
&
0xff
;
*
crc
=
crc64_table
[
i
]
^
(
*
crc
<<
8
);
...
...
lib/isc/include/isc/crc64.h
View file @
8dda0f67
...
...
@@ -36,7 +36,7 @@ isc_crc64_init(isc_uint64_t *crc);
*/
void
isc_crc64_update
(
isc_uint64_t
*
crc
,
const
isc_uint8_t
*
data
,
size_t
len
);
isc_crc64_update
(
isc_uint64_t
*
crc
,
const
void
*
data
,
size_t
len
);
/*%
* Add data to the CRC.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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