From e767e59538efa6c34c755978de1ca262422475dd Mon Sep 17 00:00:00 2001 From: Oded Arbel Date: Wed, 29 Jan 2020 15:24:16 +0200 Subject: [PATCH] when reading unsigned from redis, use strtoul because otherwise we lose data --- daemon/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/redis.c b/daemon/redis.c index a964828cd6..1e969915b2 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -873,7 +873,7 @@ static struct timeval strtotimeval(const char *c, char **endp, int base) { define_get_int_type(time_t, time_t, strtoull); define_get_int_type(timeval, struct timeval, strtotimeval); define_get_int_type(int, int, strtol); -define_get_int_type(unsigned, unsigned int, strtol); +define_get_int_type(unsigned, unsigned int, strtoul); //define_get_int_type(u16, u_int16_t, strtol); //define_get_int_type(u64, u_int64_t, strtoull); define_get_int_type(a64, atomic64, strtoa64);