tool_cfgable: For consistency renamed init_config() to config_init()
authorSteve Holme <steve_holme@hotmail.com>
Fri, 7 Feb 2014 19:40:45 +0000 (19:40 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 7 Feb 2014 21:27:12 +0000 (21:27 +0000)
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_main.c

index 9ef3f87..6bcf421 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "memdebug.h" /* keep this as LAST include */
 
-void init_config(struct Configurable* config)
+void config_init(struct Configurable* config)
 {
   memset(config, 0, sizeof(struct Configurable));
 
index 6331de2..7ac4df7 100644 (file)
@@ -216,7 +216,7 @@ struct Configurable {
   char *xoauth2_bearer;     /* XOAUTH2 bearer token */
 }; /* struct Configurable */
 
-void init_config(struct Configurable* config);
+void config_init(struct Configurable* config);
 void config_free(struct Configurable* config);
 
 #endif /* HEADER_CURL_TOOL_CFGABLE_H */
index 1d96436..9fde718 100644 (file)
@@ -178,7 +178,7 @@ int main(int argc, char *argv[])
 
   if(config) {
     /* Initialise the config */
-    init_config(config);
+    config_init(config);
 
     /* Initialize the curl library - do not call any libcurl functions before
        this point */