Tools: Refactor

This commit is contained in:
Shahram Najm 2020-01-23 12:24:46 +00:00
parent 924d6774d5
commit a39f03398c
8 changed files with 9 additions and 18 deletions

View File

@ -55,8 +55,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -47,8 +47,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -59,8 +59,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -46,8 +46,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -64,8 +64,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -3956,7 +3956,7 @@ struct KindValue
int main(int argc, char* argv[])
{
int i, ret = 0;
int i = 0;
/* GRIB-413: Collect all program arguments into a string */
const size_t maxLen = sizeof(argvString);
@ -3969,9 +3969,7 @@ int main(int argc, char* argv[])
if (i != argc - 1)
strcat(argvString, " ");
}
ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -46,8 +46,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)

View File

@ -46,8 +46,7 @@ int grib_options_count = sizeof(grib_options) / sizeof(grib_option);
int main(int argc, char* argv[])
{
int ret = grib_tool(argc, argv);
return ret;
return grib_tool(argc, argv);
}
int grib_tool_before_getopt(grib_runtime_options* options)