[asterisk-commits] rizzo: trunk r77697 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jul 29 05:49:32 CDT 2007
Author: rizzo
Date: Sun Jul 29 05:49:32 2007
New Revision: 77697
URL: http://svn.digium.com/view/asterisk?view=rev&rev=77697
Log:
minor simplification of a conditional statement
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=77697&r1=77696&r2=77697
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jul 29 05:49:32 2007
@@ -18519,10 +18519,7 @@
ast_verbose("Previous SIP reload not yet done\n");
else {
sip_reloading = TRUE;
- if (fd)
- sip_reloadreason = CHANNEL_CLI_RELOAD;
- else
- sip_reloadreason = CHANNEL_MODULE_RELOAD;
+ sip_reloadreason = fd ? CHANNEL_CLI_RELOAD : CHANNEL_MODULE_RELOAD;
}
ast_mutex_unlock(&sip_reload_lock);
restart_monitor();
More information about the asterisk-commits
mailing list