On Sat, Sep 28, 2013 at 7:25 AM, Tanu Kaskinen <tanu.kaskinen at linux.intel.com> wrote: > On Tue, 2013-09-24 at 19:45 -0300, jprvita at gmail.com wrote: >> +static void parse_adapter_properties(pa_bluetooth_adapter *a, DBusMessageIter *i, bool is_property_change) { >> + DBusMessageIter element_i; >> + >> + pa_assert(a); >> + >> + dbus_message_iter_recurse(i, &element_i); >> + >> + while (dbus_message_iter_get_arg_type(&element_i) == DBUS_TYPE_DICT_ENTRY) { >> + DBusMessageIter dict_i, variant_i; >> + const char *key; >> + >> + dbus_message_iter_recurse(&element_i, &dict_i); >> + >> + key = check_variant_property(&dict_i); >> + if (key == NULL) { >> + pa_log_error("Received invalid property for adapter %s", a->path); >> + return; >> + } >> + >> + dbus_message_iter_recurse(&dict_i, &variant_i); >> + >> + if (dbus_message_iter_get_arg_type(&variant_i) == DBUS_TYPE_STRING && pa_streq(key, "Address")) { >> + char *value; > > The type should be "const char *". > Ok. -- Jo?o Paulo Rechi Vita http://about.me/jprvita