diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-08-16 01:04:47 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-08-16 01:05:46 -0500 |
commit | aec21db6cbe094188d83458dcac8e08004904807 (patch) | |
tree | faca1bb10a0be70980a47b10440b9792935a5cf4 /drivers/atmodem | |
parent | d3cd6ca80250560ce1715d5b5bf8df422ac0541d (diff) | |
download | ofono-aec21db6cbe094188d83458dcac8e08004904807.tar.bz2 |
sim: Fix warning
drivers/atmodem/sim.c: In function ‘at_pct_cb’:
drivers/atmodem/sim.c:872:2: error: ISO C90 forbids mixed declarations
and code
Diffstat (limited to 'drivers/atmodem')
-rw-r--r-- | drivers/atmodem/sim.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |