[asterisk-commits] russell: trunk r157041 - in /trunk: channels/ main/

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


Author: russell
Date: Fri Nov 14 22:25:57 2008
New Revision: 157041

URL: http://svn.digium.com/view/asterisk?view=rev&rev=157041
Log:
Fix a few more places where the case insensitive hash should be used since
the comparison is case insensitive.

Modified:
    trunk/channels/chan_sip.c
    trunk/main/features.c
    trunk/main/taskprocessor.c

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

Modified: trunk/main/features.c
URL: http://svn.digium.com/view/asterisk/trunk/main/features.c?view=diff&rev=157041&r1=157040&r2=157041
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Fri Nov 14 22:25:57 2008
@@ -292,12 +292,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, void *data, int flags)
 {
 	struct ast_parkinglot *parkinglot = obj, *parkinglot2 = arg;
+
 	return !strcasecmp(parkinglot->name, parkinglot2->name) ? CMP_MATCH | CMP_STOP : 0;
 }
 

Modified: trunk/main/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/trunk/main/taskprocessor.c?view=diff&rev=157041&r1=157040&r2=157041
==============================================================================
--- trunk/main/taskprocessor.c (original)
+++ trunk/main/taskprocessor.c Fri Nov 14 22:25:57 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