Hash needs to return a positive integer

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@221969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Tilghman Lesher 16 years ago
parent a8c4a62791
commit 47accdc345

@ -153,7 +153,7 @@ static void *lock_broker(void *unused)
static int null_hash_cb(const void *obj, const int flags)
{
return (int)(long) obj;
return abs((int)(long) obj);
}
static int null_cmp_cb(void *obj, void *arg, int flags)

Loading…
Cancel
Save