aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-08-24 13:31:04 -0500
committerDan Williams <dcbw@redhat.com>2012-08-24 13:33:30 -0500
commitc21e29c50b5661308fb3b223c05f6942c06dc15d (patch)
treeec25f840c8fccdb123bc420fa0e5e342b1e2c3cb
parent4c1791f24884a0a0ed8c415a4363363a7ecc00d4 (diff)
novatel: fix checking ERI for roaming/home decision
More fallout from b22b2d99db57e4cec8e6c3074dd20acd6845cb62 which changed the return type of the qcdm_result_get_*() functions.
-rw-r--r--plugins/mm-modem-novatel-cdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-modem-novatel-cdma.c b/plugins/mm-modem-novatel-cdma.c
index 77d6bee7..ab7210bc 100644
--- a/plugins/mm-modem-novatel-cdma.c
+++ b/plugins/mm-modem-novatel-cdma.c
@@ -193,7 +193,7 @@ parse_modem_snapshot (MMCallbackInfo *info, QcdmResult *result)
cdma1x_state = mm_generic_cdma_query_reg_state_get_callback_1x_state (info);
/* Roaming? */
- if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri)) {
+ if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri) == 0) {
char *str;
gboolean roaming = FALSE;