]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib/lldpctl: fix style
authorVincent Bernat <vincent@bernat.ch>
Sun, 15 Oct 2023 18:31:27 +0000 (20:31 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sun, 15 Oct 2023 18:31:27 +0000 (20:31 +0200)
src/lib/lldpctl.h

index 6c2844a3985b8a5a3e8e55ec1be36e5381401a72..a64936aea0820fdf166e1ed82621e50f881e08fe 100644 (file)
@@ -1155,11 +1155,11 @@ lldpctl_atom_t *lldpctl_atom_iter_value(lldpctl_atom_t *atom,
  * reference count of the provided value is decremented. If you need to use it
  * outside of the loop, you need to increment it.
  */
-#define lldpctl_atom_foreach(atom, value)                                           \
-       for (lldpctl_atom_iter_t *iter##_LINE_ = lldpctl_atom_iter(atom);           \
-            iter##_LINE_ && (value = lldpctl_atom_iter_value(atom, iter##_LINE_)); \
-            iter##_LINE_ = lldpctl_atom_iter_next(atom, iter##_LINE_),             \
-                                lldpctl_atom_dec_ref(value))
+#define lldpctl_atom_foreach(atom, value)                                     \
+  for (lldpctl_atom_iter_t *iter##_LINE_ = lldpctl_atom_iter(atom);           \
+       iter##_LINE_ && (value = lldpctl_atom_iter_value(atom, iter##_LINE_)); \
+       iter##_LINE_ = lldpctl_atom_iter_next(atom, iter##_LINE_),             \
+                          lldpctl_atom_dec_ref(value))
 
 /**
  * Create a new value for an iterable element.