Tidying up indentation

This commit is contained in:
Shahram Najm 2013-05-10 15:23:17 +01:00
parent 66ec08b40a
commit 94ab50a0cc
1 changed files with 74 additions and 68 deletions

View File

@ -26,6 +26,7 @@ grib_option grib_options[]={
{"H",0,0,0,1,0},
{"a",0,0,0,1,0},
{"w:",0,0,0,1,0},
{"s:",0,0,0,1,0},
{"M",0,0,0,1,0},
{"T:",0,0,0,1,0},
{"7",0,0,0,1,0},
@ -57,7 +58,6 @@ int grib_tool_init(grib_runtime_options* options) {
options->dump_mode = "default";
if (opt > 1) {
printf("%s: simultaneous C/O/D options not allowed\n",grib_tool_name);
exit(1);
@ -118,10 +118,16 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) {
char tmp[1024];
char identifier[100];
size_t idlen=100;
int i;
int i,err=0;
if (grib_get_long(h,"totalLength",&length) != GRIB_SUCCESS)
length=-9999;
if (!options->skip) {
if (options->set_values_count != 0)
err=grib_set_values(h,options->set_values,options->set_values_count);
if( err != GRIB_SUCCESS && options->fail) exit(err);
}
for (i=0;i<options->print_keys_count;i++)
grib_set_flag(h,options->print_keys[i].name,GRIB_ACCESSOR_FLAG_DUMP);