sms: factor out 'remove entry' from tx_finished()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 4 Feb 2011 19:40:34 +0000 (17:40 -0200)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 18 Mar 2011 23:31:14 +0000 (18:31 -0500)
commit7a7c0717f5ed955346b1149b242a315c5f9538b0
treee8f46b952cc909e02ff4362669d2c56d15340011
parent888e07863b24026413bac8f449de377c879e1044
sms: factor out 'remove entry' from tx_finished()

Refactor tx_finished() and create a function to remove an entry from the
tx queue. This function will be used also when a message is cancelled.
Thus, handle the case in which state is MESSAGE_STATE_CANCELLED as well.

Based on patch from Yang Gu <gyagp0@gmail.com>
src/sms.c