summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-12-15 16:17:17 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-12-15 16:18:45 +0100
commit87beed6b03a08064339f62d249f0ffaf10f99cd6 (patch)
tree7d80fb771786e489145f5c9dcc4fcb092c7e3ff1 /plugins
parent58966e8e8b4a90edcb539c557795acfbd39f45e5 (diff)
downloadconnman-87beed6b03a08064339f62d249f0ffaf10f99cd6.tar.gz
connman-87beed6b03a08064339f62d249f0ffaf10f99cd6.tar.bz2
connman-87beed6b03a08064339f62d249f0ffaf10f99cd6.zip
ofono: Fix cleanup of connman_manager_init()
The return value has to be boolean.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ofono.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 41d28ae7..ce4c9213 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1745,7 +1745,7 @@ static int cdma_cm_get_properties(struct modem_data *modem)
cdma_cm_properties_reply, modem);
}
-static int connection_manager_init(struct modem_data *modem)
+static connman_bool_t connection_manager_init(struct modem_data *modem)
{
if (has_interface(modem->interfaces, OFONO_API_CM) == TRUE) {
if (ready_to_create_device(modem) == TRUE)
@@ -1756,7 +1756,7 @@ static int connection_manager_init(struct modem_data *modem)
cm_get_contexts(modem);
}
- return 0;
+ return TRUE;
}
if (has_interface(modem->interfaces, OFONO_API_CDMA_CM) == TRUE) {
@@ -1766,10 +1766,10 @@ static int connection_manager_init(struct modem_data *modem)
if (modem->device != NULL)
cdma_cm_get_properties(modem);
- return 0;
+ return TRUE;
}
- return 0;
+ return FALSE;
}
static void update_sim_imsi(struct modem_data *modem,