Added void to function prototypes that do not have parameters.
No functionality changes.
---
 src/6to4.c       | 4 ++--
 src/dhcpv6.c     | 2 +-
 src/dnsproxy.c   | 4 ++--
 src/ipconfig.c   | 2 +-
 src/service.c    | 4 ++--
 src/technology.c | 4 ++--
 src/timeserver.c | 4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/6to4.c b/src/6to4.c
index 66b9390..ea4d7f8 100644
--- a/src/6to4.c
+++ b/src/6to4.c
@@ -91,7 +91,7 @@ static int tunnel_create(struct in_addr *addr)
        return ret;
 }
 
-static void tunnel_destroy()
+static void tunnel_destroy(void)
 {
        struct ip_tunnel_parm p;
        struct ifreq ifr;
@@ -133,7 +133,7 @@ static void tunnel_destroy()
        tunnel_ip_address = NULL;
 }
 
-static int tunnel_add_route()
+static int tunnel_add_route(void)
 {
        struct __connman_inet_rtnl_handle rth;
        struct in6_addr addr6;
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 7e8b477..789db10 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -105,7 +105,7 @@ static void clear_timer(struct connman_dhcpv6 *dhcp)
        }
 }
 
-static inline float get_random()
+static inline float get_random(void)
 {
        return (rand() % 200 - 100) / 1000.0;
 }
diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 65806ca..387db4d 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -216,7 +216,7 @@ static GHashTable *listener_table = NULL;
 static time_t next_refresh;
 static GHashTable *partial_tcp_req_table;
 
-static guint16 get_id()
+static guint16 get_id(void)
 {
        return random();
 }
@@ -773,7 +773,7 @@ static gboolean try_remove_cache(gpointer user_data)
        return FALSE;
 }
 
-static void create_cache()
+static void create_cache(void)
 {
        if (__sync_fetch_and_add(&cache_refcount, 1) == 0)
                cache = g_hash_table_new_full(g_str_hash,
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 57bc3e8..68ece54 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -295,7 +295,7 @@ static void set_ipv6_privacy(gchar *ifname, int value)
        fclose(f);
 }
 
-static int get_rp_filter()
+static int get_rp_filter(void)
 {
        FILE *f;
        int value = -EINVAL, tmp;
diff --git a/src/service.c b/src/service.c
index 45d817e..e4882db 100644
--- a/src/service.c
+++ b/src/service.c
@@ -4777,7 +4777,7 @@ bool __connman_service_wps_enabled(struct connman_service 
*service)
        return service->wps;
 }
 
-void __connman_service_mark_dirty()
+void __connman_service_mark_dirty(void)
 {
        services_dirty = true;
 }
@@ -6826,7 +6826,7 @@ __connman_service_create_from_provider(struct 
connman_provider *provider)
        return service;
 }
 
-static void remove_unprovisioned_services()
+static void remove_unprovisioned_services(void)
 {
        gchar **services;
        GKeyFile *keyfile, *configkeyfile;
diff --git a/src/technology.c b/src/technology.c
index 3f11075..d0e9bbb 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -526,7 +526,7 @@ bool __connman_technology_get_offlinemode(void)
        return global_offlinemode;
 }
 
-static void connman_technology_save_offlinemode()
+static void connman_technology_save_offlinemode(void)
 {
        GKeyFile *keyfile;
 
@@ -544,7 +544,7 @@ static void connman_technology_save_offlinemode()
        return;
 }
 
-static bool connman_technology_load_offlinemode()
+static bool connman_technology_load_offlinemode(void)
 {
        GKeyFile *keyfile;
        GError *error = NULL;
diff --git a/src/timeserver.c b/src/timeserver.c
index 6440611..2321110 100644
--- a/src/timeserver.c
+++ b/src/timeserver.c
@@ -66,7 +66,7 @@ static void save_timeservers(char **servers)
        return;
 }
 
-static char **load_timeservers()
+static char **load_timeservers(void)
 {
        GKeyFile *keyfile;
        char **servers = NULL;
@@ -374,7 +374,7 @@ static int timeserver_start(struct connman_service *service)
        return __connman_timeserver_sync(service);
 }
 
-static void timeserver_stop()
+static void timeserver_stop(void)
 {
        DBG(" ");
 
-- 
1.7.11.7

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to