From 12f5d39b3a1a0cb6f01eaa3d8a7c391726f1b506 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 15 Oct 2023 20:31:27 +0200 Subject: [PATCH] lib/lldpctl: fix style --- src/lib/lldpctl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/lldpctl.h b/src/lib/lldpctl.h index 6c2844a3..a64936ae 100644 --- a/src/lib/lldpctl.h +++ b/src/lib/lldpctl.h @@ -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. -- 2.39.5