dect
/
asterisk
Archived
13
0
Fork 0

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

the comparison is case insensitive.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157041 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2008-11-15 04:25:57 +00:00
parent ccf9135534
commit 7927af69d9
3 changed files with 6 additions and 4 deletions

View File

@ -1948,7 +1948,7 @@ static int peer_hash_cb(const void *obj, const int flags)
{
const struct sip_peer *peer = obj;
return ast_str_hash(peer->name);
return ast_str_case_hash(peer->name);
}
/*!
@ -2004,7 +2004,7 @@ static int dialog_hash_cb(const void *obj, const int flags)
{
const struct sip_pvt *pvt = obj;
return ast_str_hash(pvt->callid);
return ast_str_case_hash(pvt->callid);
}
/*!

View File

@ -292,12 +292,14 @@ struct ast_bridge_thread_obj
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;
}

View File

@ -331,7 +331,7 @@ static int tps_hash_cb(const void *obj, const int flags)
{
const struct ast_taskprocessor *tps = obj;
return ast_str_hash(tps->name);
return ast_str_case_hash(tps->name);
}
/* compare callback for astobj2 */