From: Mark Michelson Date: Wed, 1 Oct 2008 21:33:11 +0000 (+0000) Subject: if (!(x) == 0) is the same as X-Git-Tag: 1.6.2.0-beta1~1226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6799e1c99ae7fe7865541cd89766483d49de3e0;p=thirdparty%2Fasterisk.git if (!(x) == 0) is the same as if (x). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@145579 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index e65c519044..2ff178e5a5 100644 --- a/main/features.c +++ b/main/features.c @@ -2379,7 +2379,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast 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)