https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r285530 | qwell | 2010-09-08 15:43:10 -0500 (Wed, 08 Sep 2010) | 9 lines
Merged revisions 285529 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r285529 | qwell | 2010-09-08 15:42:44 -0500 (Wed, 08 Sep 2010) | 1 line
Follow coding guidelines in moh rescan fix. Also fix the documentation that got me in trouble.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@285531
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);
}
*
* 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);
* }
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);
}