aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-05-06 13:15:46 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:07:24 +0200
commit03a0fee4ff3443a441f1356edb71af22d9048f47 (patch)
treea2ee06ddd3672666646207c8ff82c2ba2b83c9ad
parent6f814bb15afad3fc0a8490c7a8a7534a8d63c1f5 (diff)
samsung: minor coding style fixes
-rw-r--r--plugins/samsung/mm-broadband-bearer-samsung.c16
-rw-r--r--plugins/samsung/mm-plugin-samsung.c6
2 files changed, 12 insertions, 10 deletions
diff --git a/plugins/samsung/mm-broadband-bearer-samsung.c b/plugins/samsung/mm-broadband-bearer-samsung.c
index ecc51491..24f44d48 100644
--- a/plugins/samsung/mm-broadband-bearer-samsung.c
+++ b/plugins/samsung/mm-broadband-bearer-samsung.c
@@ -445,7 +445,8 @@ disconnect_3gpp (MMBroadbandBearer *bearer,
}
static void
-set_unsolicited_result_codes (MMBroadbandBearerSamsung *self, gboolean enable)
+set_unsolicited_result_codes (MMBroadbandBearerSamsung *self,
+ gboolean enable)
{
MMBroadbandModemSamsung *modem;
MMAtSerialPort *ports[2];
@@ -457,7 +458,7 @@ set_unsolicited_result_codes (MMBroadbandBearerSamsung *self, gboolean enable)
NULL);
g_assert (modem != NULL);
- ipdpact_regex = g_regex_new(
+ ipdpact_regex = g_regex_new (
"\\r\\n%IPDPACT:\\s*(\\d+),\\s*(\\d+),\\s*(\\d+)\\r\\n",
G_REGEX_RAW | G_REGEX_OPTIMIZE,
0,
@@ -657,11 +658,12 @@ mm_broadband_bearer_samsung_new_finish (GAsyncResult *res,
return MM_BEARER (bearer);
}
-void mm_broadband_bearer_samsung_new (MMBroadbandModemSamsung *modem,
- MMBearerProperties *properties,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+void
+mm_broadband_bearer_samsung_new (MMBroadbandModemSamsung *modem,
+ MMBearerProperties *properties,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
g_async_initable_new_async (
MM_TYPE_BROADBAND_BEARER_SAMSUNG,
diff --git a/plugins/samsung/mm-plugin-samsung.c b/plugins/samsung/mm-plugin-samsung.c
index ea19835d..d2438e9b 100644
--- a/plugins/samsung/mm-plugin-samsung.c
+++ b/plugins/samsung/mm-plugin-samsung.c
@@ -89,9 +89,9 @@ G_MODULE_EXPORT MMPlugin *
mm_plugin_create (void)
{
static const gchar *subsystems[] = { "tty", "net", NULL };
- static const mm_uint16_pair products[] = { { 0x04e8, 0x6872},
- { 0x04e8, 0x6906},
- {0, 0} };
+ static const mm_uint16_pair products[] = { { 0x04e8, 0x6872 },
+ { 0x04e8, 0x6906 },
+ { 0, 0 } };
return MM_PLUGIN (
g_object_new (MM_TYPE_PLUGIN_SAMSUNG,
MM_PLUGIN_BASE_NAME, "Samsung",