summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2012-09-19 12:22:05 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-21 13:49:34 +0300
commitb9953680ea96c977b20dbb639883d5bba6e3a4ce (patch)
treed09115fb3faa8a26c5aec17b33a536bd3a199580 /src/dbus-common.c
parentbe9a40bfc276b240530bc6b82d5bad7930c2ffee (diff)
dbus-common: Remove conn parameter from emit_property_changed
Valid DBusConnection pointer is available static variable 'connection' so it's it's redundant to pass it as function parameter.
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r--src/dbus-common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c
index f7e9e8fe1..21395d9d7 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -118,8 +118,7 @@ void dict_append_array(DBusMessageIter *dict, const char *key, int type,
dbus_message_iter_close_container(dict, &entry);
}
-dbus_bool_t emit_property_changed(DBusConnection *conn,
- const char *path,
+dbus_bool_t emit_property_changed(const char *path,
const char *interface,
const char *name,
int type, void *value)
@@ -141,7 +140,7 @@ dbus_bool_t emit_property_changed(DBusConnection *conn,
append_variant(&iter, type, value);
- return g_dbus_send_message(conn, signal);
+ return g_dbus_send_message(connection, signal);
}
dbus_bool_t emit_array_property_changed(DBusConnection *conn,