From aec21db6cbe094188d83458dcac8e08004904807 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 16 Aug 2012 01:04:47 -0500 Subject: sim: Fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit drivers/atmodem/sim.c: In function ‘at_pct_cb’: drivers/atmodem/sim.c:872:2: error: ISO C90 forbids mixed declarations and code --- drivers/atmodem/sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/atmodem') diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c index 2f2fca3d..0af9c8ca 100644 --- a/drivers/atmodem/sim.c +++ b/drivers/atmodem/sim.c @@ -856,6 +856,7 @@ static void at_pct_cb(gboolean ok, GAtResult *result, gpointer user_data) struct ofono_error error; int retries[OFONO_SIM_PASSWORD_INVALID]; size_t i; + enum ofono_sim_password_type pin_type; decode_at_error(&error, final); @@ -869,7 +870,7 @@ static void at_pct_cb(gboolean ok, GAtResult *result, gpointer user_data) for (i = 0; i < OFONO_SIM_PASSWORD_INVALID; i++) retries[i] = -1; - enum ofono_sim_password_type pin_type = ofono_sim_get_password_type(sim); + pin_type = ofono_sim_get_password_type(sim); if (pin_type == OFONO_SIM_PASSWORD_NONE) { DBG("Note: No password required, returning maximum retries:"); AT_PCT_SET_RETRIES(retries, OFONO_SIM_PASSWORD_SIM_PIN, 3); -- cgit v1.2.3