summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/astobj2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h
index 172407b80..21dc60611 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);
* }