Author: file
Date: Fri Jul 27 11:31:55 2007
New Revision: 77538
URL: http://svn.digium.com/view/asterisk?view=rev&rev=77538
Log:
Turn 4 lines of code into 1 line that does the same thing.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL:
http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=77538&r1=77537&r2=77538
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul 27 11:31:55 2007
@@ -8974,10 +8974,7 @@
return;
/* If they put someone on hold, increment the value... otherwise
decrement it */
- if (hold)
- ast_atomic_fetchadd_int(&peer->onHold, +1);
- else
- ast_atomic_fetchadd_int(&peer->onHold, -1);
+ ast_atomic_fetchadd_int(&peer->onHold, (hold ? +1 : -1));
/* Request device state update */
ast_device_state_changed("SIP/%s", peer->name);
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits