[asterisk-commits] mmichelson: trunk r145579 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 1 16:33:12 CDT 2008


Author: mmichelson
Date: Wed Oct  1 16:33:11 2008
New Revision: 145579

URL: http://svn.digium.com/view/asterisk?view=rev&rev=145579
Log:
if (!(x) == 0) is the same as
if (x).


Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.digium.com/view/asterisk/trunk/main/features.c?view=diff&rev=145579&r1=145578&r2=145579
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Wed Oct  1 16:33:11 2008
@@ -2379,7 +2379,7 @@
 		ast_copy_string(chan->exten, "h", sizeof(chan->exten));
 		chan->priority = 1;
 		ast_channel_unlock(chan);
-		while (!(res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num, &found, 1)) == 0) {
+		while ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num, &found, 1))) {
 			chan->priority++;
 		}
 		if (found && res) 




More information about the asterisk-commits mailing list