diff options
author | John Ernberg <john.ernberg@actia.se> | 2016-04-22 13:10:07 +0000 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2016-04-22 15:41:27 -0500 |
commit | 74e85341ce46ef73467d655db02eeaff233458be (patch) | |
tree | 957d8bf25228a8b71b58070bc82db48612f48b79 | |
parent | d8821a48d07320fb3418f3ce4d94d81d83fb4eac (diff) | |
download | ofono-74e85341ce46ef73467d655db02eeaff233458be.tar.gz |
simfs: Remove explicit casts
-rw-r--r-- | src/simfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simfs.c b/src/simfs.c index 03c8c9ef..595dbadc 100644 --- a/src/simfs.c +++ b/src/simfs.c @@ -74,8 +74,9 @@ struct sim_fs_op { struct ofono_sim_context *context; }; -static void sim_fs_op_free(struct sim_fs_op *node) +static void sim_fs_op_free(gpointer pointer) { + struct sim_fs_op *node = pointer; g_free(node->buffer); g_free(node); } @@ -105,8 +106,7 @@ void sim_fs_free(struct sim_fs *fs) * for operations still in progress */ if (fs->op_q) { - g_queue_foreach(fs->op_q, (GFunc) sim_fs_op_free, NULL); - g_queue_free(fs->op_q); + g_queue_free_full(fs->op_q, sim_fs_op_free); fs->op_q = NULL; } |