summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-01-25 18:30:10 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2024-01-27 19:02:51 +0100
commit634f481113a6ded9c9d596f54001872e2cc1b47f (patch)
tree09ff70ab6e4a702f54a7f967b04c73de02a0c45e /ripd
parentcd35ecc575a7b4b1a7ad134ccb3c76011ff5a347 (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 'ripd')
-rw-r--r--ripd/rip_main.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index c86caabaf1..845c5078a5 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -133,18 +133,23 @@ static const struct frr_yang_module_info *const ripd_yang_modules[] = {
&frr_vrf_info,
};
-FRR_DAEMON_INFO(ripd, RIP, .vty_port = RIP_VTY_PORT,
+/* clang-format off */
+FRR_DAEMON_INFO(ripd, RIP,
+ .vty_port = RIP_VTY_PORT,
+ .proghelp = "Implementation of the RIP routing protocol.",
- .proghelp = "Implementation of the RIP routing protocol.",
+ .signals = ripd_signals,
+ .n_signals = array_size(ripd_signals),
- .signals = ripd_signals, .n_signals = array_size(ripd_signals),
+ .privs = &ripd_privs,
- .privs = &ripd_privs, .yang_modules = ripd_yang_modules,
- .n_yang_modules = array_size(ripd_yang_modules),
+ .yang_modules = ripd_yang_modules,
+ .n_yang_modules = array_size(ripd_yang_modules),
- /* mgmtd will load the per-daemon config file now */
- .flags = FRR_NO_SPLIT_CONFIG,
+ /* mgmtd will load the per-daemon config file now */
+ .flags = FRR_NO_SPLIT_CONFIG,
);
+/* clang-format on */
#define DEPRECATED_OPTIONS ""