From 652825eb7167c5ae8b51a9990012be9e3695507c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 20 Jan 2010 10:14:01 -0600 Subject: Style: Don't go over 80 characters per line --- drivers/atmodem/atutil.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'drivers/atmodem') diff --git a/drivers/atmodem/atutil.c b/drivers/atmodem/atutil.c index c2dfd212..ab529991 100644 --- a/drivers/atmodem/atutil.c +++ b/drivers/atmodem/atutil.c @@ -222,6 +222,8 @@ gboolean at_util_parse_reg(GAtResult *result, const char *prefix, g_at_result_iter_init(&iter, result); while (g_at_result_iter_next(&iter, prefix)) { + gboolean r; + g_at_result_iter_next_number(&iter, &m); /* Sometimes we get an unsolicited CREG/CGREG here, skip it */ @@ -230,12 +232,16 @@ gboolean at_util_parse_reg(GAtResult *result, const char *prefix, switch (vendor) { case OFONO_VENDOR_HUAWEI: - if (g_at_result_iter_next_unquoted_string(&iter, &str) == TRUE) + r = g_at_result_iter_next_unquoted_string(&iter, &str); + + if (r == TRUE) l = strtol(str, NULL, 16); else goto out; - if (g_at_result_iter_next_unquoted_string(&iter, &str) == TRUE) + r = g_at_result_iter_next_unquoted_string(&iter, &str); + + if (r == TRUE) c = strtol(str, NULL, 16); else goto out; -- cgit v1.2.3