summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-01-20 10:14:01 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-01-20 10:14:01 -0600
commit652825eb7167c5ae8b51a9990012be9e3695507c (patch)
treec1a5cb4a3b935f601fc1944c09cac826449bf8be
parentebe8904f395b0c234841bae35fce29734a35619f (diff)
downloadofono-652825eb7167c5ae8b51a9990012be9e3695507c.tar.bz2
Style: Don't go over 80 characters per line
-rw-r--r--drivers/atmodem/atutil.c10
1 files changed, 8 insertions, 2 deletions
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;