[asterisk-commits] tilghman: trunk r89300 - /trunk/apps/app_zapscan.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 15 12:15:48 CST 2007


Author: tilghman
Date: Thu Nov 15 12:15:48 2007
New Revision: 89300

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89300
Log:
Fix trunk breakage due to chan->lock being renamed.

Modified:
    trunk/apps/app_zapscan.c

Modified: trunk/apps/app_zapscan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_zapscan.c?view=diff&rev=89300&r1=89299&r2=89300
==============================================================================
--- trunk/apps/app_zapscan.c (original)
+++ trunk/apps/app_zapscan.c Thu Nov 15 12:15:48 2007
@@ -340,7 +340,7 @@
 		if (tempchan && (!strcmp(tempchan->tech->type, "Zap")) && (tempchan != chan) ) {
 			ast_verb(3, "Zap channel %s is in-use, monitoring...\n", tempchan->name);
 			ast_copy_string(confstr, tempchan->name, sizeof(confstr));
-			ast_mutex_unlock(&tempchan->lock);
+			ast_channel_unlock(tempchan);
 			if ((tmp = strchr(confstr,'-'))) {
 				*tmp = '\0';
 			}
@@ -351,7 +351,7 @@
 			if (res<0) break;
 			input = res;
 		} else if (tempchan)
-			ast_mutex_unlock(&tempchan->lock);
+			ast_channel_unlock(tempchan);
 		lastchan = tempchan;
 	}
 	return res;




More information about the asterisk-commits mailing list