From 24392223752480b9088321ad0f914118d0346e55 Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Fri, 24 Apr 2020 23:43:58 +0200 Subject: Constify some input pointers Signed-off-by: Rikard Falkeborn Signed-off-by: Allan McRae --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/util.c') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index cb838e43..ead03004 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -1006,7 +1006,7 @@ static int sha256_file(const char *path, unsigned char output[32]) * @return a NULL terminated string with the hexadecimal representation of * bytes or NULL on error. This string must be freed. */ -static char *hex_representation(unsigned char *bytes, size_t size) +static char *hex_representation(const unsigned char *bytes, size_t size) { static const char *hex_digits = "0123456789abcdef"; char *str; -- cgit v1.2.3-54-g00ecf