From 8fc776833f83c417d57c43f41479bc034c3863c6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 8 May 2019 13:22:33 +0200 Subject: portability fixes, some modernization --- op.c | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'op.c') diff --git a/op.c b/op.c index c208ff7..518db93 100644 --- a/op.c +++ b/op.c @@ -250,44 +250,44 @@ void op_free_done(void *data) { free(data); } /* ----------------------------------------------------------------------- */ struct ida_op desc_flip_vert = { - name: "flip-vert", - init: op_none_init, - work: op_flip_vert, - done: op_none_done, + .name = "flip-vert", + .init = op_none_init, + .work = op_flip_vert, + .done = op_none_done, }; struct ida_op desc_flip_horz = { - name: "flip-horz", - init: op_none_init, - work: op_flip_horz, - done: op_none_done, + .name = "flip-horz", + .init = op_none_init, + .work = op_flip_horz, + .done = op_none_done, }; struct ida_op desc_rotate_cw = { - name: "rotate-cw", - init: op_rotate_init, - work: op_rotate_cw, - done: op_none_done, + .name = "rotate-cw", + .init = op_rotate_init, + .work = op_rotate_cw, + .done = op_none_done, }; struct ida_op desc_rotate_ccw = { - name: "rotate-ccw", - init: op_rotate_init, - work: op_rotate_ccw, - done: op_none_done, + .name = "rotate-ccw", + .init = op_rotate_init, + .work = op_rotate_ccw, + .done = op_none_done, }; struct ida_op desc_invert = { - name: "invert", - init: op_none_init, - work: op_invert, - done: op_none_done, + .name = "invert", + .init = op_none_init, + .work = op_invert, + .done = op_none_done, }; struct ida_op desc_crop = { - name: "crop", - init: op_crop_init, - work: op_crop_work, - done: op_none_done, + .name = "crop", + .init = op_crop_init, + .work = op_crop_work, + .done = op_none_done, }; struct ida_op desc_autocrop = { - name: "autocrop", - init: op_autocrop_init, - work: op_crop_work, - done: op_none_done, + .name = "autocrop", + .init = op_autocrop_init, + .work = op_crop_work, + .done = op_none_done, }; -- cgit