Converted GNU-style to C99-style initializer list because checkpatch
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 26 Sep 2009 08:39:18 +0000 (08:39 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 26 Sep 2009 08:39:18 +0000 (08:39 +0000)
does not recognize the former and complains about it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1149 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla2x00-target/qla2x00t.c

index b7a7a60..bea7ea1 100644 (file)
@@ -247,14 +247,14 @@ static int q2x_target_detect(struct scst_tgt_template *templ)
 {
        int res;
        struct qla_tgt_initiator itd = {
-               magic: QLA2X_TARGET_MAGIC,
-               tgt24_atio_pkt: q24_atio_pkt,
-               tgt_response_pkt: q2t_response_pkt,
-               tgt2x_ctio_completion: q2x_ctio_completion,
-               tgt_async_event: q2t_async_event,
-               tgt_host_action: q2t_host_action,
-               tgt_fc_port_added: q2t_fc_port_added,
-               tgt_fc_port_deleted: q2t_fc_port_deleted,
+               .magic = QLA2X_TARGET_MAGIC,
+               .tgt24_atio_pkt = q24_atio_pkt,
+               .tgt_response_pkt = q2t_response_pkt,
+               .tgt2x_ctio_completion = q2x_ctio_completion,
+               .tgt_async_event = q2t_async_event,
+               .tgt_host_action = q2t_host_action,
+               .tgt_fc_port_added = q2t_fc_port_added,
+               .tgt_fc_port_deleted = q2t_fc_port_deleted,
        };
 
        TRACE_ENTRY();