mirror of https://github.com/ecmwf/eccodes.git
ECC-1419: C API: codes_fieldset_new_from_files: The 'filenames' argument should be const
This commit is contained in:
parent
f29e6ca366
commit
416560bc1b
|
@ -306,7 +306,7 @@ int grib_tool_init(grib_runtime_options* options)
|
||||||
exit_if_input_is_directory(tool_name, options->infile_extra->name);
|
exit_if_input_is_directory(tool_name, options->infile_extra->name);
|
||||||
|
|
||||||
if (grib_options_on("r")) {
|
if (grib_options_on("r")) {
|
||||||
char* filename[1];
|
const char* filename[1];
|
||||||
filename[0] = options->infile_extra->name;
|
filename[0] = options->infile_extra->name;
|
||||||
options->random = 1;
|
options->random = 1;
|
||||||
options->orderby = strdup(orderby);
|
options->orderby = strdup(orderby);
|
||||||
|
|
|
@ -256,7 +256,7 @@ int grib_tool_init(grib_runtime_options* options)
|
||||||
exit_if_input_is_directory(tool_name, options->infile_extra->name);
|
exit_if_input_is_directory(tool_name, options->infile_extra->name);
|
||||||
|
|
||||||
if (grib_options_on("r")) {
|
if (grib_options_on("r")) {
|
||||||
char* filename[1];
|
const char* filename[1];
|
||||||
filename[0] = options->infile_extra->name; /* First file */
|
filename[0] = options->infile_extra->name; /* First file */
|
||||||
options->random = 1;
|
options->random = 1;
|
||||||
options->orderby = strdup(orderby);
|
options->orderby = strdup(orderby);
|
||||||
|
|
|
@ -218,7 +218,7 @@ int grib_tool_init(grib_runtime_options* options)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grib_options_on("r")) {
|
if (grib_options_on("r")) {
|
||||||
char* filename[1];
|
const char* filename[1];
|
||||||
filename[0] = options->infile_extra->name;
|
filename[0] = options->infile_extra->name;
|
||||||
options->random = 1;
|
options->random = 1;
|
||||||
options->orderby = strdup(orderby);
|
options->orderby = strdup(orderby);
|
||||||
|
|
|
@ -258,7 +258,7 @@ int grib_tool_init(grib_runtime_options* options)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grib_options_on("r")) {
|
if (grib_options_on("r")) {
|
||||||
char* filename[1];
|
const char* filename[1];
|
||||||
filename[0] = options->infile_extra->name;
|
filename[0] = options->infile_extra->name;
|
||||||
options->random = 1;
|
options->random = 1;
|
||||||
options->orderby = strdup(orderby);
|
options->orderby = strdup(orderby);
|
||||||
|
|
Loading…
Reference in New Issue