[PATCH 1/3] qmi: Fix compilation error due to variable name change



otherwise we fail with:

CC       ModemManager-mm-broadband-modem-qmi.o
mm-broadband-modem-qmi.c: In function ‘modem_load_current_bands’:
mm-broadband-modem-qmi.c:1881:35: error: ‘ctx’ undeclared (first use in this function)
     if (qmi_client_check_version (ctx->client, 1, 19)) {
                                   ^
mm-broadband-modem-qmi.c:1881:35: note: each undeclared identifier is reported only once for each function it 
appears in
---
 src/mm-broadband-modem-qmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 1efeb5a..3689c8c 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -1878,7 +1878,7 @@ modem_load_current_bands (MMIfaceModem *self,
 
 #if defined WITH_NEWEST_QMI_COMMANDS
     /* Introduced in NAS 1.19 */
-    if (qmi_client_check_version (ctx->client, 1, 19)) {
+    if (qmi_client_check_version (client, 1, 19)) {
         qmi_client_nas_get_rf_band_information (QMI_CLIENT_NAS (client),
                                                 NULL,
                                                 5,
-- 
1.8.5.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]