novatel: fix checking ERI for roaming/home decision

This is a port to git master of the following commit:

commit c21e29c50b5661308fb3b223c05f6942c06dc15d
Author: Dan Williams <dcbw@redhat.com>
Date:   Fri Aug 24 13:31:04 2012 -0500

    novatel: fix checking ERI for roaming/home decision

    More fallout from b22b2d99db
    which changed the return type of the qcdm_result_get_*() functions.
This commit is contained in:
Aleksander Morgado
2012-08-31 10:04:37 +02:00
parent 04d50e2db7
commit f53e53ba37

View File

@@ -611,7 +611,7 @@ parse_modem_snapshot (DetailedRegistrationStateContext *ctx,
guint8 eri = 0; guint8 eri = 0;
/* Roaming? */ /* 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) {
gchar *str; gchar *str;
gboolean roaming = FALSE; gboolean roaming = FALSE;