diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-09-07 12:05:29 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-09-07 12:08:50 +0200 |
| commit | 36bd815ba77564398e1398ad7f071bafa34e93be (patch) | |
| tree | e0f1c97604166a12f9480d7ae63999aece00c49d /lib/typesafe.h | |
| parent | f3434880b6768b1d1059a578d2c404490a56004f (diff) | |
Revert "lib: add a frr_each_const macro"
This reverts commit 72eae2c3cb771b7010f3f07b6c638e9ae078bbdf.
`frr_each_const(X, ...)` is not needed since it is the same as
`frr_each(X_const, ...)`.
The fact that it wasn't properly set up for clang-format, and that then
work-arounded with "clang-format off" is all the more reason to not do
this.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/typesafe.h')
| -rw-r--r-- | lib/typesafe.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/typesafe.h b/lib/typesafe.h index 8eb59c33b7..d2587160ea 100644 --- a/lib/typesafe.h +++ b/lib/typesafe.h @@ -20,9 +20,6 @@ extern "C" { #define frr_each(prefix, head, item) \ for (item = prefix##_first(head); item; \ item = prefix##_next(head, item)) -#define frr_each_const(prefix, head, item) \ - for (item = prefix##_const_first(head); item; \ - item = prefix##_const_next(head, item)) #define frr_each_safe(prefix, head, item) \ for (typeof(prefix##_next_safe(head, NULL)) prefix##_safe = \ prefix##_next_safe(head, \ |
