Skip to content

Commit

Permalink
Fix property type of Main Channel of Health plugin
Browse files Browse the repository at this point in the history
The property type must be DBUS_TYPE_OBJECT_PATH instead
of DBUS_TYPE_STRING. This is in sync with the documentation
and with the other places of usage such as the property change
signal.
  • Loading branch information
Jaikumar Ganesh authored and Johan Hedberg committed May 2, 2011
1 parent 01a3858 commit 3df2e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion health/hdp.c
Expand Up @@ -2058,7 +2058,7 @@ static DBusMessage *device_get_properties(DBusConnection *conn,
path = g_strdup(device->fr->path);
else
path = g_strdup("");
dict_append_entry(&dict, "MainChannel", DBUS_TYPE_STRING, &path);
dict_append_entry(&dict, "MainChannel", DBUS_TYPE_OBJECT_PATH, &path);
g_free(path);
dbus_message_iter_close_container(&iter, &dict);

Expand Down

0 comments on commit 3df2e87

Please sign in to comment.