diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2014-01-05 13:05:31 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2014-01-05 13:05:31 +0100 |
commit | 2fea5ef82bd3528ed62681f9ac64f45830f4acdf (patch) | |
tree | d2939a8ca01e607467166a32cb27d836f863ebdc /i3-msg | |
parent | f6ee035c613c92e29c21ad9427b38099aecccb63 (diff) | |
download | i3-2fea5ef82bd3528ed62681f9ac64f45830f4acdf.tar.gz i3-2fea5ef82bd3528ed62681f9ac64f45830f4acdf.zip |
Revert "use designated initializers for yajl_callbacks struct"
This reverts commit 705b43294add2fffede086c0c072dc5a849ffc49.
This commit broke i3bar for some users.
Diffstat (limited to 'i3-msg')
-rw-r--r-- | i3-msg/main.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c index c648f352..11a31972 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -119,11 +119,17 @@ static int reply_map_key_cb(void *params, const unsigned char *keyVal, unsigned } yajl_callbacks reply_callbacks = { - .yajl_boolean = reply_boolean_cb, - .yajl_string = reply_string_cb, - .yajl_start_map = reply_start_map_cb, - .yajl_map_key = reply_map_key_cb, - .yajl_end_map = reply_end_map_cb, + NULL, + &reply_boolean_cb, + NULL, + NULL, + NULL, + &reply_string_cb, + &reply_start_map_cb, + &reply_map_key_cb, + &reply_end_map_cb, + NULL, + NULL }; int main(int argc, char *argv[]) { |