Style: Don't go over 80 characters per line

This commit is contained in:
Denis Kenzior 2010-01-20 10:14:01 -06:00
parent ebe8904f39
commit 652825eb71
1 changed files with 8 additions and 2 deletions

View File

@ -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;