aboutsummaryrefslogtreecommitdiff
path: root/src/tool_parsecfg.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-22 20:58:43 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-22 21:00:03 +0000
commite6e8b144053f4eeda369e53cde01056daceddd03 (patch)
tree422c4528c58cc967ae045ffdf37c8eadab2d15da /src/tool_parsecfg.c
parentb914e7ed02d7e69cfcc47e8a3f47eaaaf111b4cb (diff)
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.
Diffstat (limited to 'src/tool_parsecfg.c')
-rw-r--r--src/tool_parsecfg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index 71be83d71..44d7001f0 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -230,7 +230,8 @@ int parseconfig(const char *filename,
if(!strcmp(filename, "-")) {
filename = (char *)"<stdin>";
}
- if(PARAM_HELP_REQUESTED != res) {
+ if(res != PARAM_HELP_REQUESTED &&
+ res != PARAM_ENGINES_REQUESTED) {
const char *reason = param2text(res);
warnf(config, "%s:%d: warning: '%s' %s\n",
filename, lineno, option, reason);