storage: Add void if function does not have any arguments
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 31 Oct 2012 09:33:26 +0000 (10:33 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 5 Nov 2012 12:39:18 +0000 (14:39 +0200)
src/connman.h
src/storage.c

index 65a7788..2472dab 100644 (file)
@@ -209,10 +209,10 @@ int __connman_resolvfile_remove(const char *interface, const char *domain, const
 int __connman_resolver_redo_servers(const char *interface);
 
 void __connman_storage_migrate(void);
-GKeyFile *__connman_storage_open_global();
-GKeyFile *__connman_storage_load_global();
+GKeyFile *__connman_storage_open_global(void);
+GKeyFile *__connman_storage_load_global(void);
 int __connman_storage_save_global(GKeyFile *keyfile);
-void __connman_storage_delete_global();
+void __connman_storage_delete_global(void);
 
 GKeyFile *__connman_storage_load_config(const char *ident);
 
index 29291dc..8c06ffe 100644 (file)
@@ -86,7 +86,7 @@ static void storage_delete(const char *pathname)
                connman_error("Failed to remove %s", pathname);
 }
 
-GKeyFile *__connman_storage_load_global()
+GKeyFile *__connman_storage_load_global(void)
 {
        gchar *pathname;
        GKeyFile *keyfile = NULL;
@@ -118,7 +118,7 @@ int __connman_storage_save_global(GKeyFile *keyfile)
        return ret;
 }
 
-void __connman_storage_delete_global()
+void __connman_storage_delete_global(void)
 {
        gchar *pathname;
 
@@ -169,7 +169,7 @@ GKeyFile *__connman_storage_open_service(const char *service_id)
        return keyfile;
 }
 
-gchar **connman_storage_get_services()
+gchar **connman_storage_get_services(void)
 {
        struct dirent *d;
        gchar *str;
@@ -425,7 +425,7 @@ gchar **__connman_storage_get_providers(void)
  * This function migrates keys from default.profile to settings file.
  * This can be removed once the migration is over.
 */
-void __connman_storage_migrate()
+void __connman_storage_migrate(void)
 {
        gchar *pathname;
        GKeyFile *keyfile_def = NULL;