aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-02 16:53:52 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-02 16:53:52 +0000
commitf332eef922de6a33908c9b84c79786bf079d7097 (patch)
treec7f4272fef871a95e91c7d625bfed6c925885d1d /funcs
parent335ff7ed78e435307741af9fc0bece0a2d680ece (diff)
Hash needs to return a positive integer
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@221969 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_lock.c b/funcs/func_lock.c
index 5d116e82c..432292b39 100644
--- a/funcs/func_lock.c
+++ b/funcs/func_lock.c
@@ -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)