From: Jason Parker Date: Wed, 8 Sep 2010 20:43:10 +0000 (+0000) Subject: Merged revisions 285529 via svnmerge from X-Git-Tag: 1.8.0-rc1~3^2~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a766133be6bde8cbe4db40d5439605e7782c1f4d;p=thirdparty%2Fasterisk.git 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/branches/1.8@285530 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index 172407b803..21dc60611b 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -583,7 +583,7 @@ Operations on container include: 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); } @@ -1002,7 +1002,7 @@ void *__ao2_find(struct ao2_container *c, void *arg, enum search_flags flags); * * 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); * } diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index a54becc4be..e4ea164794 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1120,7 +1120,7 @@ static void moh_rescan_files(void) { 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); }