davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=a19f0ad4349ab44ee0654aa3928585b51458d630

commit a19f0ad4349ab44ee0654aa3928585b51458d630
Author: Dave Andreoli <[email protected]>
Date:   Mon Aug 8 15:47:35 2016 +0200

    dbus: code cleanup
    
    no functional changes
---
 efl/dbus_mainloop/e_dbus.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/efl/dbus_mainloop/e_dbus.c b/efl/dbus_mainloop/e_dbus.c
index f10b2f9..5b2771c 100644
--- a/efl/dbus_mainloop/e_dbus.c
+++ b/efl/dbus_mainloop/e_dbus.c
@@ -43,8 +43,7 @@ static int _edbus_init_count = 0;
 static Eina_Bool
 e_dbus_idler(void *data)
 {
-   E_DBus_Connection *cd;
-   cd = data;
+   E_DBus_Connection *cd = data;
 
    if (DBUS_DISPATCH_COMPLETE == dbus_connection_get_dispatch_status(cd->conn))
    {
@@ -71,10 +70,9 @@ e_dbus_idler(void *data)
 static void
 cb_dispatch_status(DBusConnection *conn, DBusDispatchStatus new_status, void 
*data)
 {
-   E_DBus_Connection *cd;
+   E_DBus_Connection *cd = data;
 
    DBG("dispatch status: %d!", new_status);
-   cd = data;
 
    if (new_status == DBUS_DISPATCH_DATA_REMAINS && !cd->idler)
       cd->idler = ecore_idler_add(e_dbus_idler, cd);
@@ -225,9 +223,7 @@ cb_watch_toggle(DBusWatch *watch, void *data)
 static Eina_Bool
 e_dbus_timeout_handler(void *data)
 {
-   E_DBus_Timeout_Data *td;
-
-   td = data;
+   E_DBus_Timeout_Data *td = data;
 
    if (!dbus_timeout_get_enabled(td->timeout))
    {
@@ -245,6 +241,7 @@ static void
 e_dbus_timeout_data_free(void *timeout_data)
 {
    E_DBus_Timeout_Data *td = timeout_data;
+
    DBG("e_dbus_timeout_data_free");
    if (td->handler) ecore_timer_del(td->handler);
    free(td);
@@ -253,10 +250,9 @@ e_dbus_timeout_data_free(void *timeout_data)
 static dbus_bool_t 
 cb_timeout_add(DBusTimeout *timeout, void *data)
 {
-   E_DBus_Connection *cd;
+   E_DBus_Connection *cd = data;
    E_DBus_Timeout_Data *td;
 
-   cd = data;
    DBG("timeout add!");
    td = calloc(1, sizeof(E_DBus_Timeout_Data));
    td->cd = cd;

-- 


Reply via email to