[Freeswitch-svn] [commit] r2948 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Mon Oct 2 12:23:39 EDT 2006


Author: mikej
Date: Mon Oct  2 12:23:39 2006
New Revision: 2948

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
solaris warning tweak

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Mon Oct  2 12:23:39 2006
@@ -1574,7 +1574,7 @@
 	assert(session != NULL);
 	*frame = NULL;
 
-	while (switch_channel_test_flag(session->channel, CF_HOLD)) {
+	if (switch_channel_test_flag(session->channel, CF_HOLD)) {
 		status = SWITCH_STATUS_BREAK;
 		goto done;
 	}
@@ -2668,7 +2668,6 @@
 					}
 				}
 				goto done;
-				break;
 			case CS_INIT:		/* Basic setup tasks */
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) State INIT\n", switch_channel_get_name(session->channel));
 				if (!driver_state_handler->on_init ||



More information about the Freeswitch-svn mailing list