From f73bd1a104ebfe424bec72a97d51bfa64064892c Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Mon, 16 May 2022 10:47:24 +0100 Subject: Make buffers that are read from `const`-correct --- src/utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 586a7f3..35209d1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -69,13 +69,13 @@ void write_binary_string(const char *string, size_t len, FILE *to); void write_string(const char *string, FILE *to); /* Reads an int from a file, using len bytes, in little-endian order */ -uint64_t read_int(char **from, size_t len, const char *max); +uint64_t read_int(const char **from, size_t len, const char *max); /* Reads a binary string from a file */ -char *read_binary_string(char **from, size_t len, const char *max); +char *read_binary_string(const char **from, size_t len, const char *max); /* Reads a normal C string from a file */ -char *read_string(char **from, const char *max); +char *read_string(const char **from, const char *max); /* Caching version of getgrnam */ struct group *xgetgrnam(const char *name); -- cgit v1.2.1