]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: Introduced new operate() function
authorSteve Holme <steve_holme@hotmail.com>
Sun, 2 Feb 2014 15:20:37 +0000 (15:20 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 4 Feb 2014 20:07:35 +0000 (20:07 +0000)
src/tool_operate.c

index 5cdecd9b30e9b72e3ce623676fe4efd662ada27a..da76f55f4e2fe87faa4e471641f31ff19ac68478 100644 (file)
@@ -185,7 +185,7 @@ static curl_off_t VmsSpecialSize(const char * name,
 #endif /* __VMS */
 
 
-int operate(struct Configurable *config, int argc, argv_item_t argv[])
+static int operate_do(struct Configurable *config, int argc, argv_item_t argv[])
 {
   char errorbuffer[CURL_ERROR_SIZE];
   struct ProgressData progressbar;
@@ -1839,3 +1839,8 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
 
   return res;
 }
+
+int operate(struct Configurable *config, int argc, argv_item_t argv[])
+{
+  return operate_do(config, argc, argv);
+}