summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorPavel Tvrdik <pawel.tvrdik@gmail.cz>2014-12-03 10:10:34 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-02-21 19:31:36 +0100
commit4a591d4b947e0abc0ad013ca1b75da27c6922be5 (patch)
tree01327290a9810cc068429f81099dbc684bd8306f /proto
parent8ce9a87755372d7612375bb1a81a288f309746c8 (diff)
Replacing GNU old-style field designator extension
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/bgp.c28
-rw-r--r--proto/pipe/pipe.c24
-rw-r--r--proto/rip/rip.c24
-rw-r--r--proto/static/static.c20
4 files changed, 48 insertions, 48 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 3feffbd9..b852da04 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -1431,18 +1431,18 @@ bgp_show_proto_info(struct proto *P)
}
struct protocol proto_bgp = {
- name: "BGP",
- template: "bgp%d",
- attr_class: EAP_BGP,
- preference: DEF_PREF_BGP,
- init: bgp_init,
- start: bgp_start,
- shutdown: bgp_shutdown,
- cleanup: bgp_cleanup,
- reconfigure: bgp_reconfigure,
- copy_config: bgp_copy_config,
- get_status: bgp_get_status,
- get_attr: bgp_get_attr,
- get_route_info: bgp_get_route_info,
- show_proto_info: bgp_show_proto_info
+ .name = "BGP",
+ .template = "bgp%d",
+ .attr_class = EAP_BGP,
+ .preference = DEF_PREF_BGP,
+ .init = bgp_init,
+ .start = bgp_start,
+ .shutdown = bgp_shutdown,
+ .cleanup = bgp_cleanup,
+ .reconfigure = bgp_reconfigure,
+ .copy_config = bgp_copy_config,
+ .get_status = bgp_get_status,
+ .get_attr = bgp_get_attr,
+ .get_route_info = bgp_get_route_info,
+ .show_proto_info = bgp_show_proto_info
};
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c
index 22381c3d..d6ef153a 100644
--- a/proto/pipe/pipe.c
+++ b/proto/pipe/pipe.c
@@ -336,16 +336,16 @@ pipe_show_proto_info(struct proto *P)
struct protocol proto_pipe = {
- name: "Pipe",
- template: "pipe%d",
- multitable: 1,
- preference: DEF_PREF_PIPE,
- postconfig: pipe_postconfig,
- init: pipe_init,
- start: pipe_start,
- cleanup: pipe_cleanup,
- reconfigure: pipe_reconfigure,
- copy_config: pipe_copy_config,
- get_status: pipe_get_status,
- show_proto_info: pipe_show_proto_info
+ .name = "Pipe",
+ .template = "pipe%d",
+ .multitable = 1,
+ .preference = DEF_PREF_PIPE,
+ .postconfig = pipe_postconfig,
+ .init = pipe_init,
+ .start = pipe_start,
+ .cleanup = pipe_cleanup,
+ .reconfigure = pipe_reconfigure,
+ .copy_config = pipe_copy_config,
+ .get_status = pipe_get_status,
+ .show_proto_info = pipe_show_proto_info
};
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index a0c28e72..f41f52e7 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -1046,16 +1046,16 @@ rip_copy_config(struct proto_config *dest, struct proto_config *src)
struct protocol proto_rip = {
- name: "RIP",
- template: "rip%d",
- attr_class: EAP_RIP,
- preference: DEF_PREF_RIP,
- get_route_info: rip_get_route_info,
- get_attr: rip_get_attr,
-
- init: rip_init,
- dump: rip_dump,
- start: rip_start,
- reconfigure: rip_reconfigure,
- copy_config: rip_copy_config
+ .name = "RIP",
+ .template = "rip%d",
+ .attr_class = EAP_RIP,
+ .preference = DEF_PREF_RIP,
+ .get_route_info = rip_get_route_info,
+ .get_attr = rip_get_attr,
+
+ .init = rip_init,
+ .dump = rip_dump,
+ .start = rip_start,
+ .reconfigure = rip_reconfigure,
+ .copy_config = rip_copy_config
};
diff --git a/proto/static/static.c b/proto/static/static.c
index d3a595d3..8c31cdb8 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -528,16 +528,16 @@ static_copy_config(struct proto_config *dest, struct proto_config *src)
struct protocol proto_static = {
- name: "Static",
- template: "static%d",
- preference: DEF_PREF_STATIC,
- init: static_init,
- dump: static_dump,
- start: static_start,
- shutdown: static_shutdown,
- cleanup: static_cleanup,
- reconfigure: static_reconfigure,
- copy_config: static_copy_config
+ .name = "Static",
+ .template = "static%d",
+ .preference = DEF_PREF_STATIC,
+ .init = static_init,
+ .dump = static_dump,
+ .start = static_start,
+ .shutdown = static_shutdown,
+ .cleanup = static_cleanup,
+ .reconfigure = static_reconfigure,
+ .copy_config = static_copy_config
};
static void