@@ -307,7 +307,7 @@ struct module_list {
307307 const struct cache_entry * * entries ;
308308 int alloc , nr ;
309309};
310- #define MODULE_LIST_INIT { NULL, 0, 0 }
310+ #define MODULE_LIST_INIT { 0 }
311311
312312static int module_list_compute (int argc , const char * * argv ,
313313 const char * prefix ,
@@ -588,7 +588,7 @@ struct init_cb {
588588 const char * prefix ;
589589 unsigned int flags ;
590590};
591- #define INIT_CB_INIT { NULL, 0 }
591+ #define INIT_CB_INIT { 0 }
592592
593593static void init_submodule (const char * path , const char * prefix ,
594594 unsigned int flags )
@@ -717,7 +717,7 @@ struct status_cb {
717717 const char * prefix ;
718718 unsigned int flags ;
719719};
720- #define STATUS_CB_INIT { NULL, 0 }
720+ #define STATUS_CB_INIT { 0 }
721721
722722static void print_status (unsigned int flags , char state , const char * path ,
723723 const struct object_id * oid , const char * displaypath )
@@ -911,13 +911,13 @@ struct module_cb {
911911 char status ;
912912 const char * sm_path ;
913913};
914- #define MODULE_CB_INIT { 0, 0, NULL, NULL, '\0', NULL }
914+ #define MODULE_CB_INIT { 0 }
915915
916916struct module_cb_list {
917917 struct module_cb * * entries ;
918918 int alloc , nr ;
919919};
920- #define MODULE_CB_LIST_INIT { NULL, 0, 0 }
920+ #define MODULE_CB_LIST_INIT { 0 }
921921
922922struct summary_cb {
923923 int argc ;
@@ -928,7 +928,7 @@ struct summary_cb {
928928 unsigned int files : 1 ;
929929 int summary_limit ;
930930};
931- #define SUMMARY_CB_INIT { 0, NULL, NULL, 0, 0, 0, 0 }
931+ #define SUMMARY_CB_INIT { 0 }
932932
933933enum diff_cmd {
934934 DIFF_INDEX ,
@@ -1334,7 +1334,7 @@ struct sync_cb {
13341334 const char * prefix ;
13351335 unsigned int flags ;
13361336};
1337- #define SYNC_CB_INIT { NULL, 0 }
1337+ #define SYNC_CB_INIT { 0 }
13381338
13391339static void sync_submodule (const char * path , const char * prefix ,
13401340 unsigned int flags )
@@ -1480,7 +1480,7 @@ struct deinit_cb {
14801480 const char * prefix ;
14811481 unsigned int flags ;
14821482};
1483- #define DEINIT_CB_INIT { NULL, 0 }
1483+ #define DEINIT_CB_INIT { 0 }
14841484
14851485static void deinit_submodule (const char * path , const char * prefix ,
14861486 unsigned int flags )
@@ -1647,8 +1647,9 @@ struct submodule_alternate_setup {
16471647 } error_mode ;
16481648 struct string_list * reference ;
16491649};
1650- #define SUBMODULE_ALTERNATE_SETUP_INIT { NULL, \
1651- SUBMODULE_ALTERNATE_ERROR_IGNORE, NULL }
1650+ #define SUBMODULE_ALTERNATE_SETUP_INIT { \
1651+ .error_mode = SUBMODULE_ALTERNATE_ERROR_IGNORE, \
1652+ }
16521653
16531654static const char alternate_error_advice [] = N_ (
16541655"An alternate computed from a superproject's alternate is invalid.\n"
0 commit comments