diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-04-24 23:43:58 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-04-29 05:57:45 +0200 |
commit | 24392223752480b9088321ad0f914118d0346e55 (patch) | |
tree | 80890728bbe771c5205a64ec20dd1ee8bfe3cecd /lib/libalpm/util.c | |
parent | 3ea7fdd96c874e111588a6e64ee30b75b55db785 (diff) | |
download | pacman-24392223752480b9088321ad0f914118d0346e55.tar.gz pacman-24392223752480b9088321ad0f914118d0346e55.tar.xz |
Constify some input pointers
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |