diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2024-01-25 18:30:10 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2024-01-27 19:02:51 +0100 |
| commit | 634f481113a6ded9c9d596f54001872e2cc1b47f (patch) | |
| tree | 09ff70ab6e4a702f54a7f967b04c73de02a0c45e /staticd | |
| parent | cd35ecc575a7b4b1a7ad134ccb3c76011ff5a347 (diff) | |
*: fix `frr_daemon_info` indentation
clang-format doesn't understand FRR_DAEMON_INFO is a long macro where
laying out items semantically makes sense.
(Also use only one `FRR_DAEMON_INFO(` in isisd so editors don't get
confused with the mismatching `( ( )`.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'staticd')
| -rw-r--r-- | staticd/static_main.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/staticd/static_main.c b/staticd/static_main.c index b2f5ec4952..1953701fbb 100644 --- a/staticd/static_main.c +++ b/staticd/static_main.c @@ -119,17 +119,22 @@ static const struct frr_yang_module_info *const staticd_yang_modules[] = { * NOTE: .flags == FRR_NO_SPLIT_CONFIG to avoid reading split config, mgmtd will * do this for us now */ -FRR_DAEMON_INFO(staticd, STATIC, .vty_port = STATIC_VTY_PORT, +/* clang-format off */ +FRR_DAEMON_INFO(staticd, STATIC, + .vty_port = STATIC_VTY_PORT, + .proghelp = "Implementation of STATIC.", - .proghelp = "Implementation of STATIC.", + .signals = static_signals, + .n_signals = array_size(static_signals), - .signals = static_signals, - .n_signals = array_size(static_signals), + .privs = &static_privs, - .privs = &static_privs, .yang_modules = staticd_yang_modules, - .n_yang_modules = array_size(staticd_yang_modules), + .yang_modules = staticd_yang_modules, + .n_yang_modules = array_size(staticd_yang_modules), - .flags = FRR_NO_SPLIT_CONFIG); + .flags = FRR_NO_SPLIT_CONFIG, +); +/* clang-format on */ int main(int argc, char **argv, char **envp) { |
