diff --git a/formats/common.c b/formats/common.c index e0b456f..ed9f041 100644 --- a/formats/common.c +++ b/formats/common.c @@ -127,7 +127,7 @@ format_send_reply(struct cmd *cmd, const char *p, size_t sz, const char *content int integer_length(long long int i) { int sz = 0; - int ci = abs(i); + int ci = llabs(i); while (ci > 0) { ci = (ci/10); sz += 1; diff --git a/jansson/src/hashtable.c b/jansson/src/hashtable.c index 77d2b80..158aa28 100644 --- a/jansson/src/hashtable.c +++ b/jansson/src/hashtable.c @@ -62,7 +62,6 @@ static size_t primes[] = { 12582917, 25165843, 50331653, 100663319, 201326611, 402653189, 805306457, 1610612741 }; -static const size_t num_primes = sizeof(primes) / sizeof(size_t); static JSON_INLINE size_t num_buckets(hashtable_t *hashtable) {