aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-modem-mbm.c
diff options
context:
space:
mode:
authorTambet Ingo <tambet@gmail.com>2008-12-09 15:41:51 +0200
committerTambet Ingo <tambet@gmail.com>2008-12-09 15:41:51 +0200
commitd1d94de6a1235a36a6e40652efd4d86911eec3b2 (patch)
tree5a27d36291742ecb1b7923808a126dcf020a74f3 /plugins/mm-modem-mbm.c
parenta504fb408aa2ba3bb495a08d948ae97bdcb1cdd6 (diff)
Lots of random fixes:
Rework the MMCallbackInfo callback invocation. Always use g_error_literal() where it makes sense. Replace sleep() calls, with timeouts to not block the whole MM.
Diffstat (limited to 'plugins/mm-modem-mbm.c')
-rw-r--r--plugins/mm-modem-mbm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c
index 74e9bc25..10415bcc 100644
--- a/plugins/mm-modem-mbm.c
+++ b/plugins/mm-modem-mbm.c
@@ -308,8 +308,8 @@ get_network_mode_done (MMSerial *serial,
}
if (result == 0)
- info->error = g_error_new (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "%s", "Could not parse network mode results");
+ info->error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
+ "Could not parse network mode results");
else
mm_callback_info_set_result (info, GUINT_TO_POINTER (result), NULL);
}