diff --git a/src/statio.c b/src/statio.c index 6f1c6865..bb034ce7 100644 --- a/src/statio.c +++ b/src/statio.c @@ -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"); diff --git a/src/statio.h b/src/statio.h index 1b084bf6..1544a0a8 100644 --- a/src/statio.h +++ b/src/statio.h @@ -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