ECC-1419: C API: codes_fieldset_new_from_files: The 'filenames' argument should be const

This commit is contained in:
Shahram Najm 2022-06-30 10:28:48 +01:00
parent f29e6ca366
commit 416560bc1b
4 changed files with 4 additions and 4 deletions

View File

@ -306,7 +306,7 @@ int grib_tool_init(grib_runtime_options* options)
exit_if_input_is_directory(tool_name, options->infile_extra->name);
if (grib_options_on("r")) {
char* filename[1];
const char* filename[1];
filename[0] = options->infile_extra->name;
options->random = 1;
options->orderby = strdup(orderby);

View File

@ -256,7 +256,7 @@ int grib_tool_init(grib_runtime_options* options)
exit_if_input_is_directory(tool_name, options->infile_extra->name);
if (grib_options_on("r")) {
char* filename[1];
const char* filename[1];
filename[0] = options->infile_extra->name; /* First file */
options->random = 1;
options->orderby = strdup(orderby);

View File

@ -218,7 +218,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("r")) {
char* filename[1];
const char* filename[1];
filename[0] = options->infile_extra->name;
options->random = 1;
options->orderby = strdup(orderby);

View File

@ -258,7 +258,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("r")) {
char* filename[1];
const char* filename[1];
filename[0] = options->infile_extra->name;
options->random = 1;
options->orderby = strdup(orderby);