diff options
author | Guillem Jover <guillem@debian.org> | 2009-10-12 21:21:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-10-14 02:30:05 +0200 |
commit | 69e3c912bbec30399d23477817821c38d01c1415 (patch) | |
tree | dfa2d6160c42a2f32fcf98f132c19af4f3ae267a /lib | |
parent | 5da3e92afcb6109feed5e9dac155eb3ca75010eb (diff) | |
download | dpkg-69e3c912bbec30399d23477817821c38d01c1415.tar.gz |
Use named intializers in structures
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/triglib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/dpkg/triglib.c b/lib/dpkg/triglib.c index 7288dd68c..7e2d9165f 100644 --- a/lib/dpkg/triglib.c +++ b/lib/dpkg/triglib.c @@ -228,10 +228,10 @@ struct trigkindinfo { #define TKI_DEFINE(kindname) \ static const struct trigkindinfo tki_##kindname= { \ - trk_##kindname##_activate_start, \ - trk_##kindname##_activate_awaiter, \ - trk_##kindname##_activate_done, \ - trk_##kindname##_interest_change \ + .activate_start = trk_##kindname##_activate_start, \ + .activate_awaiter = trk_##kindname##_activate_awaiter, \ + .activate_done = trk_##kindname##_activate_done, \ + .interest_change = trk_##kindname##_interest_change, \ }; static const struct trigkindinfo *dtki; @@ -796,10 +796,10 @@ th_simple_nn_find(const char *name, int nonew) TRIGHOOKS_DEFINE_NAMENODE_ACCESSORS struct trig_hooks trigh = { - NULL, - NULL, - th_simple_nn_find, - th_nn_interested, - th_nn_name + .enqueue_deferred = NULL, + .transitional_activate = NULL, + .namenode_find = th_simple_nn_find, + .namenode_interested = th_nn_interested, + .namenode_name = th_nn_name, }; |