summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoqiang Liu <guoqiang.liu@archermind.com>2014-08-13 01:41:09 (GMT)
committerGuoqiang Liu <guoqiang.liu@archermind.com>2014-08-13 01:52:06 (GMT)
commitd59b21eb8f628bd07868398722b49159e3831cc9 (patch)
treec19eb567e327af8bc5da692ec352a994c9529c7b
parent4b207913fb85121227bfa9acddcc3dc21e320f34 (diff)
downloadconnman-d59b21eb8f628bd07868398722b49159e3831cc9.zip
connman-d59b21eb8f628bd07868398722b49159e3831cc9.tar.gz
connman-d59b21eb8f628bd07868398722b49159e3831cc9.tar.bz2
Technology: Fix dbus bool type mismatch issuerefs/changes/35/25935/1
Dbus need a dbus_bool_t to store bool value, or it will reault in connman crash. Change-Id: I318ce03dbb3aa24e0321911bf137453b7b50e3f7
-rw-r--r--src/technology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/technology.c b/src/technology.c
index b6e8b49..679c779 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -948,7 +948,7 @@ static DBusMessage *set_property(DBusConnection *conn,
}
}
} else if (g_str_equal(name, "Hidden")) {
- bool hidden;
+ dbus_bool_t hidden;
if (type != DBUS_TYPE_BOOLEAN)
return __connman_error_invalid_arguments(msg);
@@ -965,7 +965,7 @@ static DBusMessage *set_property(DBusConnection *conn,
CONNMAN_TECHNOLOGY_INTERFACE,
"Hidden",
DBUS_TYPE_BOOLEAN,
- &technology->tethering_hidden);
+ &hidden);
} else if (g_str_equal(name, "Powered")) {
dbus_bool_t enable;