diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-30 14:29:34 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-30 14:29:34 -0500 |
commit | 4292b2dbeda6bf31115abb8e5f9839d61e0a1272 (patch) | |
tree | 915ea684afc6c8594199d7c2e4b20e3abaa6617d /drivers/atmodem/sim-poll.c | |
parent | b74c9fb0c60c66ed41e8b17a093b90814c95a91f (diff) | |
download | ofono-4292b2dbeda6bf31115abb8e5f9839d61e0a1272.tar.bz2 |
sim: Turn around the order of arguments
The void *user argument was first. It should be last instead to be
consistent with the other watch functions.
Diffstat (limited to 'drivers/atmodem/sim-poll.c')
-rw-r--r-- | drivers/atmodem/sim-poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atmodem/sim-poll.c b/drivers/atmodem/sim-poll.c index 3f1a355c..ae1b55c3 100644 --- a/drivers/atmodem/sim-poll.c +++ b/drivers/atmodem/sim-poll.c @@ -168,7 +168,7 @@ static gboolean sim_status_poll(gpointer user_data) return FALSE; } -static void sim_state_watch(void *user, enum ofono_sim_state new_state) +static void sim_state_watch(enum ofono_sim_state new_state, void *user) { struct sim_poll_data *spd = user; @@ -189,7 +189,7 @@ static void sim_watch(struct ofono_atom *atom, spd->sim_state_watch = ofono_sim_add_state_watch(spd->sim, sim_state_watch, spd, NULL); - sim_state_watch(spd, ofono_sim_get_state(spd->sim)); + sim_state_watch(ofono_sim_get_state(spd->sim), spd); sim_status_poll(spd); |