[asterisk-commits] murf: branch murf/mtxprof r131641 - /team/murf/mtxprof/channels/chan_agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 17 09:42:03 CDT 2008


Author: murf
Date: Thu Jul 17 09:42:02 2008
New Revision: 131641

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131641
Log:
make chan_agent compile

Modified:
    team/murf/mtxprof/channels/chan_agent.c

Modified: team/murf/mtxprof/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/team/murf/mtxprof/channels/chan_agent.c?view=diff&rev=131641&r1=131640&r2=131641
==============================================================================
--- team/murf/mtxprof/channels/chan_agent.c (original)
+++ team/murf/mtxprof/channels/chan_agent.c Thu Jul 17 09:42:02 2008
@@ -274,7 +274,8 @@
 
 	/* Try to be safe, but don't deadlock */
 	for (i = 0; i < 10; i++) {
-		if ((res = AST_LIST_TRYLOCK(&agents)) == 0) {
+		AST_LIST_TRYLOCK_ASSIGN(&agents,res);
+		if (res == 0) {
 			break;
 		}
 	}




More information about the asterisk-commits mailing list