]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Follow coding guidelines in moh rescan fix. Also fix the documentation that got...
authorJason Parker <jparker@digium.com>
Wed, 8 Sep 2010 20:42:44 +0000 (20:42 +0000)
committerJason Parker <jparker@digium.com>
Wed, 8 Sep 2010 20:42:44 +0000 (20:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@285529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/astobj2.h
res/res_musiconhold.c

index 8ef6985c7b47d403dfde98c5866ae7910e635521..766993713b19a9b50059e045494a1477b0770326 100644 (file)
@@ -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);
  *  }
index d05557732605ab3b1770a484eea22d958671fa3a..b8c562d09e29b887b8366f4d89f751b9a19e681c 100644 (file)
@@ -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);
        }