From 705a4cb549d7cd798162430512f482ba930226d6 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 23 Feb 2014 12:59:59 +0000 Subject: tool_cfgable: Renamed Configurable structure to OperationConfig To allow for the addition of a global config structure and prevent confusion between the two. --- src/tool_paramhlp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tool_paramhlp.c') diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 7ce9131c6..0bbede996 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -37,7 +37,7 @@ #include "memdebug.h" /* keep this as LAST include */ -struct getout *new_getout(struct Configurable *config) +struct getout *new_getout(struct OperationConfig *config) { struct getout *node = calloc(1, sizeof(struct getout)); struct getout *last = config->url_last; @@ -241,7 +241,7 @@ ParameterError str2udouble(double *val, const char *str) * data. */ -long proto2num(struct Configurable *config, long *val, const char *str) +long proto2num(struct OperationConfig *config, long *val, const char *str) { char *buffer; const char *sep = ","; @@ -439,7 +439,7 @@ ParameterError add2list(struct curl_slist **list, const char *ptr) return PARAM_OK; } -int ftpfilemethod(struct Configurable *config, const char *str) +int ftpfilemethod(struct OperationConfig *config, const char *str) { if(curlx_raw_equal("singlecwd", str)) return CURLFTPMETHOD_SINGLECWD; @@ -451,7 +451,7 @@ int ftpfilemethod(struct Configurable *config, const char *str) return CURLFTPMETHOD_MULTICWD; } -int ftpcccmethod(struct Configurable *config, const char *str) +int ftpcccmethod(struct OperationConfig *config, const char *str) { if(curlx_raw_equal("passive", str)) return CURLFTPSSL_CCC_PASSIVE; @@ -461,7 +461,7 @@ int ftpcccmethod(struct Configurable *config, const char *str) return CURLFTPSSL_CCC_PASSIVE; } -long delegation(struct Configurable *config, char *str) +long delegation(struct OperationConfig *config, char *str) { if(curlx_raw_equal("none", str)) return CURLGSSAPI_DELEGATION_NONE; @@ -481,7 +481,7 @@ static char *my_useragent(void) return strdup(CURL_NAME "/" CURL_VERSION); } -CURLcode get_args(struct Configurable *config, const size_t i) +CURLcode get_args(struct OperationConfig *config, const size_t i) { CURLcode result = CURLE_OK; bool last = (config->next ? FALSE : TRUE); -- cgit v1.2.3