Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
ebfd891c
Commit
ebfd891c
authored
Nov 26, 2014
by
Thomas Jahns
🤸
Browse files
Add const declaration to checksum input parameters.
parent
04e48b85
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdi_cksum.c
View file @
ebfd891c
...
...
@@ -11,7 +11,7 @@
#include "error.h"
#include "serialize.h"
uint32_t
cdiCheckSum
(
int
type
,
int
count
,
void
*
buffer
)
uint32_t
cdiCheckSum
(
int
type
,
int
count
,
const
void
*
buffer
)
{
uint32_t
s
=
0U
;
xassert
(
count
>=
0
);
...
...
src/cdi_cksum.h
View file @
ebfd891c
...
...
@@ -3,6 +3,6 @@
#include <inttypes.h>
uint32_t
cdiCheckSum
(
int
type
,
int
count
,
void
*
data
);
uint32_t
cdiCheckSum
(
int
type
,
int
count
,
const
void
*
data
);
#endif
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