mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
Merge pull request #6368 from braewoods/warnings
fix multiple warnings related to _hashindex.c
This commit is contained in:
commit
52f9bc926d
2 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ static void hashindex_write(HashIndex *index, PyObject *file_py);
|
||||||
static uint64_t hashindex_compact(HashIndex *index);
|
static uint64_t hashindex_compact(HashIndex *index);
|
||||||
static HashIndex *hashindex_init(int capacity, int key_size, int value_size);
|
static HashIndex *hashindex_init(int capacity, int key_size, int value_size);
|
||||||
static const unsigned char *hashindex_get(HashIndex *index, const unsigned char *key);
|
static const unsigned char *hashindex_get(HashIndex *index, const unsigned char *key);
|
||||||
static int hashindex_set(HashIndex *index, const unsigned char *key, const unsigned char *value);
|
static int hashindex_set(HashIndex *index, const unsigned char *key, const void *value);
|
||||||
static int hashindex_delete(HashIndex *index, const unsigned char *key);
|
static int hashindex_delete(HashIndex *index, const unsigned char *key);
|
||||||
static unsigned char *hashindex_next_key(HashIndex *index, const unsigned char *key);
|
static unsigned char *hashindex_next_key(HashIndex *index, const unsigned char *key);
|
||||||
|
|
||||||
|
@ -559,7 +559,7 @@ hashindex_get(HashIndex *index, const unsigned char *key)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
hashindex_set(HashIndex *index, const unsigned char *key, const unsigned char *value)
|
hashindex_set(HashIndex *index, const unsigned char *key, const void *value)
|
||||||
{
|
{
|
||||||
int start_idx;
|
int start_idx;
|
||||||
int idx = hashindex_lookup(index, key, &start_idx);
|
int idx = hashindex_lookup(index, key, &start_idx);
|
||||||
|
|
|
@ -102,7 +102,7 @@ typedef struct unpack_user {
|
||||||
|
|
||||||
/* collect values here for current chunklist entry */
|
/* collect values here for current chunklist entry */
|
||||||
struct {
|
struct {
|
||||||
char key[32];
|
unsigned char key[32];
|
||||||
uint32_t csize;
|
uint32_t csize;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
} current;
|
} current;
|
||||||
|
|
Loading…
Reference in a new issue