aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-23 12:59:59 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-23 13:09:20 +0000
commit705a4cb549d7cd798162430512f482ba930226d6 (patch)
tree19ef6feaee7e0e5ebbc9caeed1ed22d37f82f9eb /src/tool_operate.c
parent6512e93be1d60eb9879676665c032f34e6940c70 (diff)
tool_cfgable: Renamed Configurable structure to OperationConfig
To allow for the addition of a global config structure and prevent confusion between the two.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index d117a2aad..783d86cce 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -187,7 +187,7 @@ static curl_off_t VmsSpecialSize(const char * name,
}
#endif /* __VMS */
-static CURLcode operate_init(struct Configurable *config)
+static CURLcode operate_init(struct OperationConfig *config)
{
/* Get a curl handle to use for all forthcoming curl transfers */
config->easy = curl_easy_init();
@@ -204,7 +204,7 @@ static CURLcode operate_init(struct Configurable *config)
return CURLE_OK;
}
-static CURLcode operate_do(struct Configurable *config)
+static CURLcode operate_do(struct OperationConfig *config)
{
char errorbuffer[CURL_ERROR_SIZE];
struct ProgressData progressbar;
@@ -1792,7 +1792,7 @@ static CURLcode operate_do(struct Configurable *config)
return (CURLcode)res;
}
-static void operate_free(struct Configurable *config)
+static void operate_free(struct OperationConfig *config)
{
if(config->easy) {
curl_easy_cleanup(config->easy);
@@ -1803,7 +1803,7 @@ static void operate_free(struct Configurable *config)
clean_metalink(config);
}
-CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[])
+CURLcode operate(struct OperationConfig *config, int argc, argv_item_t argv[])
{
CURLcode result = CURLE_OK;
@@ -1847,7 +1847,7 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[])
/* Perform the main operations */
else {
size_t count = 0;
- struct Configurable *operation = config;
+ struct OperationConfig *operation = config;
/* Get the required aguments for each operation */
while(!result && operation) {