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 /pimd | |
parent | lib: create `frr_daemon_state_{load,save}` (diff) | |
download | frr-634f481113a6ded9c9d596f54001872e2cc1b47f.tar.xz frr-634f481113a6ded9c9d596f54001872e2cc1b47f.zip |
*: 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 'pimd')
-rw-r--r-- | pimd/pim_main.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pimd/pim_main.c b/pimd/pim_main.c index 7db0a7676..400db396c 100644 --- a/pimd/pim_main.c +++ b/pimd/pim_main.c @@ -70,17 +70,20 @@ static const struct frr_yang_module_info *const pimd_yang_modules[] = { &frr_gmp_info, }; -FRR_DAEMON_INFO(pimd, PIM, .vty_port = PIMD_VTY_PORT, +/* clang-format off */ +FRR_DAEMON_INFO(pimd, PIM, + .vty_port = PIMD_VTY_PORT, + .proghelp = "Implementation of the PIM routing protocol.", - .proghelp = "Implementation of the PIM routing protocol.", + .signals = pimd_signals, + .n_signals = 4 /* XXX array_size(pimd_signals) XXX*/, - .signals = pimd_signals, - .n_signals = 4 /* XXX array_size(pimd_signals) XXX*/, + .privs = &pimd_privs, - .privs = &pimd_privs, .yang_modules = pimd_yang_modules, - .n_yang_modules = array_size(pimd_yang_modules), + .yang_modules = pimd_yang_modules, + .n_yang_modules = array_size(pimd_yang_modules), ); - +/* clang-format on */ int main(int argc, char **argv, char **envp) { |