summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-17 15:19:42 -0400
committerGitHub <noreply@github.com>2019-06-17 15:19:42 -0400
commit7ec5e2bf704242ff083e258215ed0967173b969c (patch)
tree1121416c392d2df5624c4d114e614c63893ba6d7 /lib/if.c
parent7925535457e1adbaf2f064e7f3d446fb9bedc353 (diff)
parent6dcef54cbf8e08e6b9fde2997375818f4fb9a2e8 (diff)
Merge pull request #4514 from opensourcerouting/warnings-20190612
*: kill more warnings
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,