diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-08-07 17:47:57 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-08-07 19:51:29 -0500 |
commit | 32e4232b7c511e6e36c264d82473c65d6e964e0e (patch) | |
tree | 7594d532476822638b9c3a9d97d8e3c3a914c853 /src/sim.c | |
parent | 055c5c7450ca0e9b756a6823446988cf7082d46d (diff) | |
download | ofono-32e4232b7c511e6e36c264d82473c65d6e964e0e.tar.bz2 |
Don't use g_timeout_add to retrieve imsi
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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) |