summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-08-07 17:47:57 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-08-07 19:51:29 -0500
commit32e4232b7c511e6e36c264d82473c65d6e964e0e (patch)
tree7594d532476822638b9c3a9d97d8e3c3a914c853 /src/sim.c
parent055c5c7450ca0e9b756a6823446988cf7082d46d (diff)
downloadofono-32e4232b7c511e6e36c264d82473c65d6e964e0e.tar.bz2
Don't use g_timeout_add to retrieve imsi
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sim.c b/src/sim.c
index dba36b21..1fd105e4 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -453,20 +453,17 @@ static void sim_imsi_cb(const struct ofono_error *error, const char *imsi,
ofono_sim_set_ready(modem);
}
-static gboolean sim_retrieve_imsi(void *user_data)
+static void sim_retrieve_imsi(struct ofono_modem *modem)
{
- struct ofono_modem *modem = user_data;
struct sim_manager_data *sim = modem->sim_manager;
if (!sim->ops->read_imsi) {
ofono_error("IMSI retrieval not implemented,"
" only emergency calls will be available");
- return FALSE;
+ return;
}
sim->ops->read_imsi(modem, sim_imsi_cb, modem);
-
- return FALSE;
}
static int create_dirs(const char *filename, const mode_t mode)
@@ -1008,7 +1005,7 @@ static void initialize_sim_manager(struct ofono_modem *modem)
* arbitrary files to be written or read, assuming their presence
* in the EFust
*/
- g_timeout_add(0, sim_retrieve_imsi, modem);
+ sim_retrieve_imsi(modem);
}
const char *ofono_sim_get_imsi(struct ofono_modem *modem)