From: Jason Parker Date: Wed, 8 Sep 2010 20:42:44 +0000 (+0000) Subject: Follow coding guidelines in moh rescan fix. Also fix the documentation that got... X-Git-Tag: 1.6.2.14-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=878abe833903170cfb3b526e2876b3748ad996f8;p=thirdparty%2Fasterisk.git 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.6.2@285529 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index 8ef6985c7b..766993713b 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -591,7 +591,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); } @@ -1013,7 +1013,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 d055577326..b8c562d09e 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1087,7 +1087,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); }