global: improve const correctness when assigning string constants
We're about to enable `-Wwrite-strings`, which changes the type of string constants to `const char[]`. Fix various sites where we assign such constants to non-const variables. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
5529cba09f
commit
b567004b4b
@ -18,7 +18,7 @@ int cmd_diagnose(int argc, const char **argv, const char *prefix)
|
||||
struct tm tm;
|
||||
enum diagnose_mode mode = DIAGNOSE_STATS;
|
||||
char *option_output = NULL;
|
||||
char *option_suffix = "%Y-%m-%d-%H%M";
|
||||
const char *option_suffix = "%Y-%m-%d-%H%M";
|
||||
char *prefixed_filename;
|
||||
|
||||
const struct option diagnose_options[] = {
|
||||
|
Reference in New Issue
Block a user