summaryrefslogtreecommitdiffstats
path: root/src/location-reporting.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-02-16 09:43:28 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-02-16 09:43:28 +0100
commit179a2e7d7c27108af273aa8ff47cebe2fab0183b (patch)
tree6c307a63de71aa210d9445cc2c561d704c87af22 /src/location-reporting.c
parent04ab1b28637d207e0b02840164ade4ac5f78298c (diff)
downloadofono-179a2e7d7c27108af273aa8ff47cebe2fab0183b.tar.bz2
location-reporting: Fix some minor style issues
Diffstat (limited to 'src/location-reporting.c')
-rw-r--r--src/location-reporting.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/location-reporting.c b/src/location-reporting.c
index 2fa5b027..3cd9e169 100644
--- a/src/location-reporting.c
+++ b/src/location-reporting.c
@@ -71,7 +71,7 @@ static DBusMessage *location_reporting_get_properties(DBusConnection *conn,
DBusMessageIter iter;
DBusMessageIter dict;
const char *type;
- int value;
+ dbus_bool_t value;
reply = dbus_message_new_method_return(msg);
if (reply == NULL)
@@ -109,7 +109,7 @@ static void signal_enabled(const struct ofono_location_reporting *lr)
{
DBusConnection *conn = ofono_dbus_get_connection();
const char *path = __ofono_atom_get_path(lr->atom);
- int value = lr->enabled;
+ dbus_bool_t value = lr->enabled;
ofono_dbus_signal_property_changed(conn, path,
OFONO_LOCATION_REPORTING_INTERFACE,
@@ -123,7 +123,6 @@ static void client_exited_disable_cb(const struct ofono_error *error,
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
ofono_error("Disabling location-reporting failed");
-
return;
}
@@ -139,7 +138,7 @@ static void client_exited(DBusConnection *conn, void *data)
lr->disconnect_watch = 0;
- lr->driver->disable(lr, client_exited_disable_cb , lr);
+ lr->driver->disable(lr, client_exited_disable_cb, lr);
}
static void location_reporting_disable_cb(const struct ofono_error *error,
@@ -220,7 +219,6 @@ static DBusMessage *location_reporting_release(DBusConnection *conn,
struct ofono_location_reporting *lr = data;
const char *caller = dbus_message_get_sender(msg);
-
/*
* Avoid a race by not trying to release the device if there is a
* pending message or client already signaled it's exiting. In the