summaryrefslogtreecommitdiffstats
path: root/pathd
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 /pathd
parentlib: create `frr_daemon_state_{load,save}` (diff)
downloadfrr-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 'pathd')
-rw-r--r--pathd/path_main.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/pathd/path_main.c b/pathd/path_main.c
index c333162f2..c3409522e 100644
--- a/pathd/path_main.c
+++ b/pathd/path_main.c
@@ -97,15 +97,20 @@ static const struct frr_yang_module_info *pathd_yang_modules[] = {
#define PATH_VTY_PORT 2621
-FRR_DAEMON_INFO(pathd, PATH, .vty_port = PATH_VTY_PORT,
+/* clang-format off */
+FRR_DAEMON_INFO(pathd, PATH,
+ .vty_port = PATH_VTY_PORT,
+ .proghelp = "Implementation of PATH.",
- .proghelp = "Implementation of PATH.",
+ .signals = path_signals,
+ .n_signals = array_size(path_signals),
- .signals = path_signals, .n_signals = array_size(path_signals),
+ .privs = &pathd_privs,
- .privs = &pathd_privs, .yang_modules = pathd_yang_modules,
- .n_yang_modules = array_size(pathd_yang_modules),
+ .yang_modules = pathd_yang_modules,
+ .n_yang_modules = array_size(pathd_yang_modules),
);
+/* clang-format on */
int main(int argc, char **argv, char **envp)
{