]> granicus.if.org Git - curl/commitdiff
tool_main: rename function to make it unique and better
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Nov 2018 10:58:09 +0000 (11:58 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Nov 2018 11:02:27 +0000 (12:02 +0100)
... there's already another function in the curl tool named
free_config_fields!

src/tool_main.c

index 3089ee37f8f5a99b5ca475fcb054d5fbaff593ea..c3a81e93305aa9137687e19d73b49a41d95cdd3f 100644 (file)
@@ -192,7 +192,7 @@ static CURLcode main_init(struct GlobalConfig *config)
   return result;
 }
 
-static void free_config_fields(struct GlobalConfig *config)
+static void free_globalconfig(struct GlobalConfig *config)
 {
   Curl_safefree(config->trace_dump);
 
@@ -229,7 +229,7 @@ static void main_free(struct GlobalConfig *config)
     PR_Cleanup();
   }
 #endif
-  free_config_fields(config);
+  free_globalconfig(config);
 
   /* Free the config structures */
   config_free(config->last);