Archived
14
0
Fork 0

Merged revisions 285530 via svnmerge from

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: http://svn.digium.com/svn/asterisk/trunk@285531 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
qwell 2010-09-08 20:43:38 +00:00
parent a0ace5f0b6
commit 4f0452793a
2 changed files with 3 additions and 3 deletions

View file

@ -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);
* }

View file

@ -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);
}