summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-12 19:13:30 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-13 00:05:03 +0200
commit53280f9327fafdc255e819f1c7887748147895e3 (patch)
tree9d69292f7300c6da39d6e13704a32327c732e426 /lib/if.c
parent8fd142d931c641aed9d129913b061207aaebad47 (diff)
*: fix northbound initializer warning on OpenBSD
For some reason, the compiler on OpenBSD on our CI boxes doesn't like struct initializers with ".a.b = x, .a.c = y", generating a warning about overwritten initializers... Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/if.c b/lib/if.c
index 3f489e0c3e..4314252d76 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1422,15 +1422,19 @@ const struct frr_yang_module_info frr_interface_info = {
.nodes = {
{
.xpath = "/frr-interface:lib/interface",
- .cbs.create = lib_interface_create,
- .cbs.destroy = lib_interface_destroy,
- .cbs.cli_show = cli_show_interface,
+ .cbs = {
+ .create = lib_interface_create,
+ .destroy = lib_interface_destroy,
+ .cli_show = cli_show_interface,
+ },
},
{
.xpath = "/frr-interface:lib/interface/description",
- .cbs.modify = lib_interface_description_modify,
- .cbs.destroy = lib_interface_description_destroy,
- .cbs.cli_show = cli_show_interface_desc,
+ .cbs = {
+ .modify = lib_interface_description_modify,
+ .destroy = lib_interface_description_destroy,
+ .cli_show = cli_show_interface_desc,
+ },
},
{
.xpath = NULL,