mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Fix a few more places where the case insensitive hash should be used since
the comparison is case insensitive. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user