[asterisk-commits] qwell: branch 1.6.2 r285529 - in /branches/1.6.2: include/asterisk/ res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 8 15:42:47 CDT 2010


Author: qwell
Date: Wed Sep  8 15:42:44 2010
New Revision: 285529

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=285529
Log:
Follow coding guidelines in moh rescan fix.  Also fix the documentation that got me in trouble.

Modified:
    branches/1.6.2/include/asterisk/astobj2.h
    branches/1.6.2/res/res_musiconhold.c

Modified: branches/1.6.2/include/asterisk/astobj2.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/include/asterisk/astobj2.h?view=diff&rev=285529&r1=285528&r2=285529
==============================================================================
--- branches/1.6.2/include/asterisk/astobj2.h (original)
+++ branches/1.6.2/include/asterisk/astobj2.h Wed Sep  8 15:42:44 2010
@@ -591,7 +591,7 @@
 
 	    i = ao2_iterator_init(c, flags);
 
-	    while ( (o = ao2_iterator_next(&i)) ) {
+	    while ((o = ao2_iterator_next(&i))) {
 		... do something on o ...
 		ao2_ref(o, -1);
 	    }
@@ -1013,7 +1013,7 @@
  *
  *  i = ao2_iterator_init(c, flags);
  *
- *  while ( (o = ao2_iterator_next(&i)) ) {
+ *  while ((o = ao2_iterator_next(&i))) {
  *     ... do something on o ...
  *     ao2_ref(o, -1);
  *  }

Modified: branches/1.6.2/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_musiconhold.c?view=diff&rev=285529&r1=285528&r2=285529
==============================================================================
--- branches/1.6.2/res/res_musiconhold.c (original)
+++ branches/1.6.2/res/res_musiconhold.c Wed Sep  8 15:42:44 2010
@@ -1087,7 +1087,7 @@
 
 	i = ao2_iterator_init(mohclasses, 0);
 
-	while ( (c = ao2_iterator_next(&i)) ) {
+	while ((c = ao2_iterator_next(&i))) {
 		moh_scan_files(c);
 		ao2_ref(c, -1);
 	}




More information about the asterisk-commits mailing list