[asterisk-commits] russell: branch 1.6.1 r157042 - in /branches/1.6.1: ./ channels/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 14 22:30:43 CST 2008


Author: russell
Date: Fri Nov 14 22:30:42 2008
New Revision: 157042

URL: http://svn.digium.com/view/asterisk?view=rev&rev=157042
Log:
Merged revisions 157041 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r157041 | russell | 2008-11-14 22:25:57 -0600 (Fri, 14 Nov 2008) | 3 lines

Fix a few more places where the case insensitive hash should be used since
the comparison is case insensitive.

........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_sip.c
    branches/1.6.1/main/features.c
    branches/1.6.1/main/taskprocessor.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=157042&r1=157041&r2=157042
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Fri Nov 14 22:30:42 2008
@@ -1653,7 +1653,7 @@
 {
 	const struct sip_peer *peer = obj;
 
-	return ast_str_hash(peer->name);
+	return ast_str_case_hash(peer->name);
 }
 
 /*!
@@ -1709,7 +1709,7 @@
 {
 	const struct sip_pvt *pvt = obj;
 
-	return ast_str_hash(pvt->callid);
+	return ast_str_case_hash(pvt->callid);
 }
 
 /*!

Modified: branches/1.6.1/main/features.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/features.c?view=diff&rev=157042&r1=157041&r2=157042
==============================================================================
--- branches/1.6.1/main/features.c (original)
+++ branches/1.6.1/main/features.c Fri Nov 14 22:30:42 2008
@@ -225,12 +225,14 @@
 static int parkinglot_hash_cb(const void *obj, const int flags)
 {
 	const struct ast_parkinglot *parkinglot = obj;
-	return ast_str_hash(parkinglot->name);
+
+	return ast_str_case_hash(parkinglot->name);
 }
 
 static int parkinglot_cmp_cb(void *obj, void *arg, int flags)
 {
 	struct ast_parkinglot *parkinglot = obj, *parkinglot2 = arg;
+
 	return !strcasecmp(parkinglot->name, parkinglot2->name) ? CMP_MATCH | CMP_STOP : 0;
 }
 

Modified: branches/1.6.1/main/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/taskprocessor.c?view=diff&rev=157042&r1=157041&r2=157042
==============================================================================
--- branches/1.6.1/main/taskprocessor.c (original)
+++ branches/1.6.1/main/taskprocessor.c Fri Nov 14 22:30:42 2008
@@ -331,7 +331,7 @@
 {
 	const struct ast_taskprocessor *tps = obj;
 
-	return ast_str_hash(tps->name);
+	return ast_str_case_hash(tps->name);
 }
 
 /* compare callback for astobj2 */




More information about the asterisk-commits mailing list