[svn-commits] russell: branch russell/iax_refcount r79633 - /team/russell/iax_refcount/chan...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Aug 15 17:42:17 CDT 2007
Author: russell
Date: Wed Aug 15 17:42:16 2007
New Revision: 79633
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79633
Log:
don't put the OBJ_NODATA flag in the calls to ao2_find, also fix the return of the cmp callback
Modified:
team/russell/iax_refcount/channels/chan_iax2.c
Modified: team/russell/iax_refcount/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax_refcount/channels/chan_iax2.c?view=diff&rev=79633&r1=79632&r2=79633
==============================================================================
--- team/russell/iax_refcount/channels/chan_iax2.c (original)
+++ team/russell/iax_refcount/channels/chan_iax2.c Wed Aug 15 17:42:16 2007
@@ -1058,7 +1058,7 @@
struct iax2_peer *peer = obj;
const char *name = arg;
- return strcasecmp(peer->name, name);
+ return !strcasecmp(peer->name, name) ? CMP_MATCH : 0;
}
/*!
@@ -1069,7 +1069,7 @@
{
struct iax2_peer *peer = NULL;
- peer = ao2_find(peers, (void *) name, OBJ_NODATA);
+ peer = ao2_find(peers, (void *) name, 0);
/* Now go for realtime if applicable */
if(!peer && realtime)
@@ -5607,7 +5607,7 @@
char *name = data;
struct iax2_peer *peer = NULL;
- peer = ao2_find(peers, name, OBJ_NODATA);
+ peer = ao2_find(peers, name, 0);
if (!peer)
return;
@@ -8695,7 +8695,7 @@
int firstpass=1;
if (!temponly) {
- peer = ao2_find(peers, (void *) name, OBJ_NODATA);
+ peer = ao2_find(peers, (void *) name, 0);
if (peer && !ast_test_flag(peer, IAX_DELME))
firstpass = 0;
}
More information about the svn-commits
mailing list