aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-02 17:01:42 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-02 17:01:42 +0000
commit2bd43aec35995511b0d4ea076804336905992854 (patch)
treed75f742c1017011b50ed5692c19b742f363b9466 /funcs
parentf332eef922de6a33908c9b84c79786bf079d7097 (diff)
Merged revisions 221971 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r221971 | tilghman | 2009-10-02 11:59:57 -0500 (Fri, 02 Oct 2009) | 9 lines Merged revisions 221970 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r221970 | tilghman | 2009-10-02 11:58:03 -0500 (Fri, 02 Oct 2009) | 2 lines Ensure the result of the hash function is positive. Negative array offsets suck. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@221973 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 432292b39..5d116e82c 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 abs((int)(long) obj);
+ return (int)(long) obj;
}
static int null_cmp_cb(void *obj, void *arg, int flags)