1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-13 01:45:56 +00:00

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.
This commit is contained in:
James Buren 2022-02-26 13:57:49 -06:00
parent 4427c16d31
commit 1618c98975

View file

@ -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;