diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.cz> | 2014-12-03 10:10:34 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 19:31:36 +0100 |
commit | 4a591d4b947e0abc0ad013ca1b75da27c6922be5 (patch) | |
tree | 01327290a9810cc068429f81099dbc684bd8306f /sysdep/unix/krt.c | |
parent | 8ce9a87755372d7612375bb1a81a288f309746c8 (diff) |
Replacing GNU old-style field designator extension
Diffstat (limited to 'sysdep/unix/krt.c')
-rw-r--r-- | sysdep/unix/krt.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index a2fb83d9..398d1ebb 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -277,15 +277,15 @@ kif_copy_config(struct proto_config *dest, struct proto_config *src) struct protocol proto_unix_iface = { - name: "Device", - template: "device%d", - preference: DEF_PREF_DIRECT, - preconfig: kif_preconfig, - init: kif_init, - start: kif_start, - shutdown: kif_shutdown, - reconfigure: kif_reconfigure, - copy_config: kif_copy_config + .name = "Device", + .template = "device%d", + .preference = DEF_PREF_DIRECT, + .preconfig = kif_preconfig, + .init = kif_init, + .start = kif_start, + .shutdown = kif_shutdown, + .reconfigure = kif_reconfigure, + .copy_config = kif_copy_config }; /* @@ -1198,20 +1198,20 @@ krt_get_attr(eattr * a, byte * buf, int buflen UNUSED) struct protocol proto_unix_kernel = { - name: "Kernel", - template: "kernel%d", - attr_class: EAP_KRT, - preference: DEF_PREF_INHERITED, - preconfig: krt_preconfig, - postconfig: krt_postconfig, - init: krt_init, - start: krt_start, - shutdown: krt_shutdown, - reconfigure: krt_reconfigure, - copy_config: krt_copy_config, - get_attr: krt_get_attr, + .name = "Kernel", + .template = "kernel%d", + .attr_class = EAP_KRT, + .preference = DEF_PREF_INHERITED, + .preconfig = krt_preconfig, + .postconfig = krt_postconfig, + .init = krt_init, + .start = krt_start, + .shutdown = krt_shutdown, + .reconfigure = krt_reconfigure, + .copy_config = krt_copy_config, + .get_attr = krt_get_attr, #ifdef KRT_ALLOW_LEARN - dump: krt_dump, - dump_attrs: krt_dump_attrs, + .dump = krt_dump, + .dump_attrs = krt_dump_attrs, #endif }; |