[asterisk-commits] tilghman: branch 1.6.1 r221969 - /branches/1.6.1/funcs/func_lock.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 2 11:53:55 CDT 2009


Author: tilghman
Date: Fri Oct  2 11:53:52 2009
New Revision: 221969

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=221969
Log:
Hash needs to return a positive integer

Modified:
    branches/1.6.1/funcs/func_lock.c

Modified: branches/1.6.1/funcs/func_lock.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/funcs/func_lock.c?view=diff&rev=221969&r1=221968&r2=221969
==============================================================================
--- branches/1.6.1/funcs/func_lock.c (original)
+++ branches/1.6.1/funcs/func_lock.c Fri Oct  2 11:53:52 2009
@@ -153,7 +153,7 @@
 
 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)




More information about the asterisk-commits mailing list