diff options
author | David Lamparter <equinox@diac24.net> | 2019-07-28 09:27:03 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-07-28 09:27:03 +0200 |
commit | 4d5cf6bc460160ab3df0eba696ae4a99193101b2 (patch) | |
tree | 9448d17b387338d80c33802a0a387409c80610fe | |
parent | lib: use some more transparent unions for prefixes (diff) | |
download | frr-4d5cf6bc460160ab3df0eba696ae4a99193101b2.tar.xz frr-4d5cf6bc460160ab3df0eba696ae4a99193101b2.zip |
lib: fix misplaced brace in typesafe lists
OMGWTFBBQ no. 2...
Signed-off-by: David Lamparter <equinox@diac24.net>
-rw-r--r-- | lib/typesafe.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/typesafe.h b/lib/typesafe.h index 0a4ed69e4..ee244c78a 100644 --- a/lib/typesafe.h +++ b/lib/typesafe.h @@ -434,7 +434,7 @@ macro_inline type *prefix ## _find_gteq(struct prefix##_head *h, \ struct ssort_item *sitem = h->sh.first; \ int cmpval = 0; \ while (sitem && (cmpval = cmpfn_nuq( \ - container_of(sitem, type, field.si), item) < 0)) \ + container_of(sitem, type, field.si), item)) < 0) \ sitem = sitem->next; \ return container_of_null(sitem, type, field.si); \ } \ @@ -444,7 +444,7 @@ macro_inline type *prefix ## _find_lt(struct prefix##_head *h, \ struct ssort_item *prev = NULL, *sitem = h->sh.first; \ int cmpval = 0; \ while (sitem && (cmpval = cmpfn_nuq( \ - container_of(sitem, type, field.si), item) < 0)) \ + container_of(sitem, type, field.si), item)) < 0) \ sitem = (prev = sitem)->next; \ return container_of_null(prev, type, field.si); \ } \ @@ -499,7 +499,7 @@ macro_inline type *prefix ## _find(struct prefix##_head *h, const type *item) \ struct ssort_item *sitem = h->sh.first; \ int cmpval = 0; \ while (sitem && (cmpval = cmpfn( \ - container_of(sitem, type, field.si), item) < 0)) \ + container_of(sitem, type, field.si), item)) < 0) \ sitem = sitem->next; \ if (!sitem || cmpval > 0) \ return NULL; \ |