sms: Optimize behavior of previous commit
authorDenis Kenzior <denkenz@gmail.com>
Wed, 12 Sep 2012 03:31:44 +0000 (22:31 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 12 Sep 2012 03:33:43 +0000 (22:33 -0500)
commit2dac10e1cb2d86e88dffe67569888bb9c110be9d
treed2cd7bc7a6b8538ae99924c1ea75f538116deac2
parent80fb1c2fac738bd27111d4849b649e57a17ac65f
sms: Optimize behavior of previous commit

The previous commit fixed the bug, however performing a linear-search
through the entire tx-queue is quite wasteful.  The current usage
pattern is to always modify the entry at the tail of the queue, so
optimize.
src/sms.c