diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-17 21:33:48 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-17 21:45:39 -0600 |
commit | 57512ad924b4c74f420a536efc009baa89a70a59 (patch) | |
tree | 85b87fbb8faf9289b822e6e8575789e9f5b86bbc | |
parent | 955e6a61ee5a4c461b361f04b452eda3d119fffa (diff) | |
download | ofono-57512ad924b4c74f420a536efc009baa89a70a59.tar.bz2 |
Style: Repeat for plugins
-rw-r--r-- | plugins/atgen.c | 3 | ||||
-rw-r--r-- | plugins/calypso.c | 3 | ||||
-rw-r--r-- | plugins/modemconf.c | 6 | ||||
-rw-r--r-- | plugins/phonesim.c | 3 | ||||
-rw-r--r-- | plugins/udev.c | 6 |
5 files changed, 14 insertions, 7 deletions
diff --git a/plugins/atgen.c b/plugins/atgen.c index 8300da27..e174d6fc 100644 --- a/plugins/atgen.c +++ b/plugins/atgen.c @@ -121,8 +121,9 @@ static int atgen_enable(struct ofono_modem *modem) syntax = g_at_syntax_new_gsm_permissive(); else return -EINVAL; - } else + } else { syntax = g_at_syntax_new_gsmv1(); + } chat = g_at_chat_new(channel, syntax); g_at_syntax_unref(syntax); diff --git a/plugins/calypso.c b/plugins/calypso.c index c5403de2..4d01881c 100644 --- a/plugins/calypso.c +++ b/plugins/calypso.c @@ -211,8 +211,9 @@ static void cfun_set_on_cb(gboolean ok, GAtResult *result, gpointer user_data) g_at_mux_shutdown(data->mux); g_at_mux_unref(data->mux); data->mux = NULL; - } else + } else { setup_modem(modem); + } ofono_modem_set_powered(modem, ok); } diff --git a/plugins/modemconf.c b/plugins/modemconf.c index 39a62b8a..882fa5a3 100644 --- a/plugins/modemconf.c +++ b/plugins/modemconf.c @@ -57,15 +57,17 @@ static int set_address(struct ofono_modem *modem, if (value) { ofono_modem_set_string(modem, "Address", value); g_free(value); - } else + } else { ofono_modem_set_string(modem, "Address", "127.0.0.1"); + } value = g_key_file_get_string(keyfile, group, "Port", NULL); if (value) { ofono_modem_set_integer(modem, "Port", atoi(value)); g_free(value); - } else + } else { ofono_modem_set_integer(modem, "Port", 12345); + } value = g_key_file_get_string(keyfile, group, "Modem", NULL); if (value) { diff --git a/plugins/phonesim.c b/plugins/phonesim.c index 4704c4fc..6b5a0dab 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -245,9 +245,10 @@ static int phonesim_enable(struct ofono_modem *modem) g_at_mux_setup_gsm0710(data->chat, mux_setup, modem, NULL); g_at_chat_unref(data->chat); data->chat = NULL; - } else + } else { g_at_chat_send(data->chat, "AT+CFUN=1", NULL, cfun_set_on_cb, modem, NULL); + } return -EINPROGRESS; } diff --git a/plugins/udev.c b/plugins/udev.c index 8bb2d658..9ab865bd 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -115,8 +115,9 @@ static void add_mbm(struct ofono_modem *modem, devnode = udev_device_get_property_value(udev_device, "INTERFACE"); ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode); - } else + } else { return; + } device = ofono_modem_get_string(modem, MODEM_DEVICE); network = ofono_modem_get_string(modem, NETWORK_INTERFACE); @@ -158,8 +159,9 @@ static void add_hso(struct ofono_modem *modem, devnode = udev_device_get_property_value(udev_device, "INTERFACE"); ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode); - } else + } else { return; + } app = ofono_modem_get_string(modem, APPLICATION_PORT); control = ofono_modem_get_string(modem, CONTROL_PORT); |