From 983c197c6b7b6c31e91bfb82c3d32a2578c39b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 26 Jan 2014 16:37:56 +0100 Subject: [PATCH] broadband-modem-qmi: Fix compilation error due to variable name change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 1efeb5a8..3689c8c8 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,