tool_cfgable: Removed list_engine flag from config structure

In preparation for separating the global config options from the per
operation config options, reworked the list engines code to not use a
member variable in the Configurable structure.
This commit is contained in:
Steve Holme 2014-02-22 20:58:43 +00:00
parent b914e7ed02
commit e6e8b14405
5 changed files with 14 additions and 13 deletions

View file

@ -1826,14 +1826,13 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[])
/* Parse the command line arguments */
ParameterError res = parse_args(config, argc, argv);
if(res) {
if(res != PARAM_HELP_REQUESTED)
result = CURLE_OK;
/* Check if we were asked to list the SSL engines */
if(res == PARAM_ENGINES_REQUESTED)
tool_list_engines(config->easy);
else if(res != PARAM_HELP_REQUESTED)
result = CURLE_FAILED_INIT;
else
result = CURLE_OK;
}
/* Check if we were asked to list the SSL engines */
else if(config->list_engines) {
tool_list_engines(config->easy);
}
/* Perform the main operations */
else {