mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 13:45:31 +00:00
cache sync: convert incoming integers to uint64_t
This commit is contained in:
parent
f786211b12
commit
3c6372f841
1 changed files with 13 additions and 14 deletions
|
@ -118,7 +118,7 @@ static inline void unpack_init_user_state(unpack_user *u)
|
||||||
u->expect = expect_item_begin;
|
u->expect = expect_item_begin;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_int64(unpack_user* u, int64_t d)
|
static inline int unpack_callback_uint64(unpack_user* u, int64_t d)
|
||||||
{
|
{
|
||||||
switch(u->expect) {
|
switch(u->expect) {
|
||||||
case expect_size:
|
case expect_size:
|
||||||
|
@ -135,40 +135,39 @@ static inline int unpack_callback_int64(unpack_user* u, int64_t d)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int unpack_callback_uint32(unpack_user* u, uint32_t d)
|
||||||
|
{
|
||||||
|
return unpack_callback_uint64(u, d);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_uint16(unpack_user* u, uint16_t d)
|
static inline int unpack_callback_uint16(unpack_user* u, uint16_t d)
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_uint8(unpack_user* u, uint8_t d)
|
static inline int unpack_callback_uint8(unpack_user* u, uint8_t d)
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int unpack_callback_int64(unpack_user* u, uint64_t d)
|
||||||
static inline int unpack_callback_uint32(unpack_user* u, uint32_t d)
|
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
|
||||||
|
|
||||||
static inline int unpack_callback_uint64(unpack_user* u, uint64_t d)
|
|
||||||
{
|
|
||||||
return unpack_callback_int64(u, d);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_int32(unpack_user* u, int32_t d)
|
static inline int unpack_callback_int32(unpack_user* u, int32_t d)
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_int16(unpack_user* u, int16_t d)
|
static inline int unpack_callback_int16(unpack_user* u, int16_t d)
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int unpack_callback_int8(unpack_user* u, int8_t d)
|
static inline int unpack_callback_int8(unpack_user* u, int8_t d)
|
||||||
{
|
{
|
||||||
return unpack_callback_int64(u, d);
|
return unpack_callback_uint64(u, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ain't got anything to do with those floats */
|
/* Ain't got anything to do with those floats */
|
||||||
|
|
Loading…
Reference in a new issue