summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2012-09-19 12:22:06 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-21 13:50:21 +0300
commitf6bff40444ed734fb4264e4aea6c060da3839749 (patch)
tree544ce11c22fad78cd5b5469a5c2318d1291b73a3 /src/dbus-common.c
parentb9953680ea96c977b20dbb639883d5bba6e3a4ce (diff)
dbus-common: Remove conn parameter from emit_array_property_changed
DBusConnection pointer is already stored in connection static variable so 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 21395d9d7..afd07dea2 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -143,8 +143,7 @@ dbus_bool_t emit_property_changed(const char *path,
return g_dbus_send_message(connection, signal);
}
-dbus_bool_t emit_array_property_changed(DBusConnection *conn,
- const char *path,
+dbus_bool_t emit_array_property_changed(const char *path,
const char *interface,
const char *name,
int type, void *value, int num)
@@ -166,7 +165,7 @@ dbus_bool_t emit_array_property_changed(DBusConnection *conn,
append_array_variant(&iter, type, value, num);
- return g_dbus_send_message(conn, signal);
+ return g_dbus_send_message(connection, signal);
}
void set_dbus_connection(DBusConnection *conn)