diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-14 11:56:25 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-14 13:33:57 +0100 |
| commit | 54929fd38a352bd8096383a7aa65cc89e0c8ab0c (patch) | |
| tree | 3e3329dcf5951b154f01259c339cf2e91627cfe2 /lib/printfrr.h | |
| parent | f59e6882267bf9a5cd04dbf54f45b07c53021890 (diff) | |
*: use semicolon after printfrr_ext_autoreg_{p,d}
Mostly to make clang-format not format these to peak ugly.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/printfrr.h')
| -rw-r--r-- | lib/printfrr.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/printfrr.h b/lib/printfrr.h index 1b5ddb8ca4..a2d113ba1e 100644 --- a/lib/printfrr.h +++ b/lib/printfrr.h @@ -209,10 +209,11 @@ void printfrr_ext_reg(const struct printfrr_ext *); .print_ptr = print_fn, \ }; \ static void _printreg_##print_fn(void) __attribute__((constructor)); \ - static void _printreg_##print_fn(void) { \ + static void _printreg_##print_fn(void) \ + { \ printfrr_ext_reg(&_printext_##print_fn); \ } \ - /* end */ + MACRO_REQUIRE_SEMICOLON() #define printfrr_ext_autoreg_i(matchs, print_fn) \ static ssize_t print_fn(struct fbuf *, struct printfrr_eargs *, \ @@ -222,10 +223,11 @@ void printfrr_ext_reg(const struct printfrr_ext *); .print_int = print_fn, \ }; \ static void _printreg_##print_fn(void) __attribute__((constructor)); \ - static void _printreg_##print_fn(void) { \ + static void _printreg_##print_fn(void) \ + { \ printfrr_ext_reg(&_printext_##print_fn); \ } \ - /* end */ + MACRO_REQUIRE_SEMICOLON() /* fbuf helper functions - note all 3 of these return the length that would * be written regardless of how much space was available in the buffer, as |
