From 63ec15d807e6c1b47d3be4efc6859a6aa878a661 Mon Sep 17 00:00:00 2001 From: Brandon L Black Date: Thu, 19 Sep 2024 15:01:54 -0500 Subject: [PATCH] trivial constification in statio --- src/statio.c | 2 +- src/statio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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