From 1618c989754bf037732e10106fc5de1cb026c99b Mon Sep 17 00:00:00 2001 From: James Buren Date: Sat, 26 Feb 2022 13:57:49 -0600 Subject: [PATCH] src/borg/cache_sync/unpack.h: fix compiler warnings The key argument being sent to hashindex_get and hashindex_set by multiple functions is a different signedness from what the functions expect. This resolves the issue by changing the key type in the unpack_user struct to unsigned char. --- src/borg/cache_sync/unpack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/cache_sync/unpack.h b/src/borg/cache_sync/unpack.h index a185fe784..f6dd9ca8e 100644 --- a/src/borg/cache_sync/unpack.h +++ b/src/borg/cache_sync/unpack.h @@ -102,7 +102,7 @@ typedef struct unpack_user { /* collect values here for current chunklist entry */ struct { - char key[32]; + unsigned char key[32]; uint32_t csize; uint32_t size; } current;