Skip to content

Commit

Permalink
trivial constification in statio
Browse files Browse the repository at this point in the history
  • Loading branch information
blblack committed Sep 19, 2024
1 parent 87e4367 commit 63ec15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/statio.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ char* statio_serialize(size_t* dlen_p)
// to leave an unused hole in the sequence, future additions must go on the
// end, and future significant meaning changes will require deleting a slot and
// then adding a new one.
void statio_deserialize(uint64_t* data, size_t dlen)
void statio_deserialize(const uint64_t* data, size_t dlen)
{
if (!dlen || dlen & 4U) {
log_err("stats deserialization failed: length must be a non-zero multiple of 8");
Expand Down
2 changes: 1 addition & 1 deletion src/statio.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ F_NONNULL F_MALLOC
char* statio_serialize(size_t* dlen_p);

F_NONNULL
void statio_deserialize(uint64_t* data, size_t dlen);
void statio_deserialize(const uint64_t* data, size_t dlen);

#endif // GDSND_STATIO_H

0 comments on commit 63ec15d

Please sign in to comment.