core: M15 coding style fix
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>
Wed, 12 Jan 2011 10:52:04 +0000 (12:52 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Jan 2011 16:06:58 +0000 (08:06 -0800)
src/dbus.c
src/main.c
src/manager.c
src/modem.c
src/ofono.h

index b719217..01d43cf 100644 (file)
@@ -415,7 +415,7 @@ gboolean __ofono_dbus_valid_object_path(const char *path)
        return TRUE;
 }
 
-DBusConnection *ofono_dbus_get_connection()
+DBusConnection *ofono_dbus_get_connection(void)
 {
        return g_connection;
 }
index 87fb0ab..3db8819 100644 (file)
@@ -42,7 +42,7 @@
 
 static GMainLoop *event_loop;
 
-void __ofono_exit()
+void __ofono_exit(void)
 {
        g_main_loop_quit(event_loop);
 }
index 0649bcc..7075909 100644 (file)
@@ -91,7 +91,7 @@ static GDBusSignalTable manager_signals[] = {
        { }
 };
 
-int __ofono_manager_init()
+int __ofono_manager_init(void)
 {
        DBusConnection *conn = ofono_dbus_get_connection();
        gboolean ret;
@@ -107,7 +107,7 @@ int __ofono_manager_init()
        return 0;
 }
 
-void __ofono_manager_cleanup()
+void __ofono_manager_cleanup(void)
 {
        DBusConnection *conn = ofono_dbus_get_connection();
 
index 953d6c3..981aabc 100644 (file)
@@ -1560,12 +1560,12 @@ static void sim_watch(struct ofono_atom *atom,
                                                        modem, NULL);
 }
 
-void __ofono_modemwatch_init()
+void __ofono_modemwatch_init(void)
 {
        g_modemwatches = __ofono_watchlist_new(g_free);
 }
 
-void __ofono_modemwatch_cleanup()
+void __ofono_modemwatch_cleanup(void)
 {
        __ofono_watchlist_free(g_modemwatches);
 }
@@ -1850,7 +1850,7 @@ void ofono_modem_driver_unregister(const struct ofono_modem_driver *d)
        }
 }
 
-void __ofono_modem_shutdown()
+void __ofono_modem_shutdown(void)
 {
        struct ofono_modem *modem;
        GSList *l;
index cab70cd..77567c2 100644 (file)
 
 #include <ofono/types.h>
 
-void __ofono_exit();
+void __ofono_exit(void);
 
-int __ofono_manager_init();
-void __ofono_manager_cleanup();
+int __ofono_manager_init(void);
+void __ofono_manager_cleanup(void);
 
-void __ofono_modem_shutdown();
+void __ofono_modem_shutdown(void);
 
 #include <ofono/log.h>
 
@@ -174,8 +174,8 @@ void __ofono_atom_free(struct ofono_atom *atom);
 
 typedef void (*ofono_modemwatch_cb_t)(struct ofono_modem *modem,
                                        gboolean added, void *data);
-void __ofono_modemwatch_init();
-void __ofono_modemwatch_cleanup();
+void __ofono_modemwatch_init(void);
+void __ofono_modemwatch_cleanup(void);
 unsigned int __ofono_modemwatch_add(ofono_modemwatch_cb_t cb, void *user,
                                        ofono_destroy_func destroy);
 gboolean __ofono_modemwatch_remove(unsigned int id);