[asterisk-commits] mmichelson: branch mmichelson/pool_shark r380515 - /team/mmichelson/pool_shar...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 30 11:06:16 CST 2013


Author: mmichelson
Date: Wed Jan 30 11:06:13 2013
New Revision: 380515

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380515
Log:
Make empty while loop more obvious.

Adds braces plus a comment that states the loop body is
empty on purpose.


Modified:
    team/mmichelson/pool_shark/res/res_sip.c

Modified: team/mmichelson/pool_shark/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pool_shark/res/res_sip.c?view=diff&rev=380515&r1=380514&r2=380515
==============================================================================
--- team/mmichelson/pool_shark/res/res_sip.c (original)
+++ team/mmichelson/pool_shark/res/res_sip.c Wed Jan 30 11:06:13 2013
@@ -377,7 +377,9 @@
 static int execute_tasks(void *data)
 {
 	struct ast_sip_work *work = data;
-	while (ast_taskprocessor_execute(work->queue));
+	while (ast_taskprocessor_execute(work->queue)) {
+		/* Empty on purpose */
+	}
 	ao2_cleanup(work);
 	return 0;
 }




More information about the asterisk-commits mailing list