[svn-commits] jpeeler: branch jpeeler/bug13173 r156161 - /team/jpeeler/bug13173/apps/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 12 10:59:50 CST 2008


Author: jpeeler
Date: Wed Nov 12 10:59:50 2008
New Revision: 156161

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156161
Log:
Down to the nitty-gritty: move a comment and add braces to a bodyless while loop to add clarity.


Modified:
    team/jpeeler/bug13173/apps/app_meetme.c

Modified: team/jpeeler/bug13173/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/team/jpeeler/bug13173/apps/app_meetme.c?view=diff&rev=156161&r1=156160&r2=156161
==============================================================================
--- team/jpeeler/bug13173/apps/app_meetme.c (original)
+++ team/jpeeler/bug13173/apps/app_meetme.c Wed Nov 12 10:59:50 2008
@@ -358,8 +358,8 @@
 	struct ast_frame *origframe;
 	struct ast_trans_pvt *transpath[32];
 	AST_LIST_HEAD_NOLOCK(, ast_conf_user) userlist;
+	AST_LIST_ENTRY(ast_conference) list;
 	/* announce_thread related data */
-	AST_LIST_ENTRY(ast_conference) list;
 	pthread_t announcethread;
 	ast_mutex_t announcethreadlock;
 	unsigned int announcethread_stop:1;
@@ -1796,7 +1796,9 @@
 		ast_cond_signal(&conf->announcelist_addition);
 		ast_mutex_unlock(&conf->announcelistlock);
 
-		while (!ast_check_hangup(conf->chan) && ao2_ref(item, 0) == 2 && !ast_safe_sleep(chan, 1000));
+		while (!ast_check_hangup(conf->chan) && ao2_ref(item, 0) == 2 && !ast_safe_sleep(chan, 1000)) {
+			;
+		}
 		ao2_ref(item, -1);
 	}
 




More information about the svn-commits mailing list