diff options
-rw-r--r-- | plugins/ofono.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index 2af555d6..7abcf8dc 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -78,8 +78,8 @@ struct modem_data { gboolean has_gprs; gboolean available; gboolean pending_online; - gboolean requested_online; - gboolean online; + dbus_bool_t requested_online; + dbus_bool_t online; uint8_t strength, has_strength; }; @@ -279,10 +279,10 @@ static int modem_change_online(char const *path, dbus_bool_t online) if (modem == NULL) return -ENODEV; - if (modem->online == (gboolean)online) + if (modem->online == online) return -EALREADY; - modem->requested_online = (gboolean)online; + modem->requested_online = online; return set_property(path, OFONO_MODEM_INTERFACE, "Online", DBUS_TYPE_BOOLEAN, &online, |