mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
*.h: move some *_INIT to designated initializers
Move *_INIT macros I'll use in a subsequent commits to designated initializers. This isn't required for those follow-up changes, but since next commits will change things in this area, let's use the modern pattern over the old one while we're at it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
ebf3c04b26
commit
3d97ea479f
@@ -141,7 +141,10 @@ struct child_process {
|
||||
void *clean_on_exit_handler_cbdata;
|
||||
};
|
||||
|
||||
#define CHILD_PROCESS_INIT { NULL, STRVEC_INIT, STRVEC_INIT }
|
||||
#define CHILD_PROCESS_INIT { \
|
||||
.args = STRVEC_INIT, \
|
||||
.env_array = STRVEC_INIT, \
|
||||
}
|
||||
|
||||
/**
|
||||
* The functions: child_process_init, start_command, finish_command,
|
||||
|
||||
Reference in New Issue
Block a user