Avoiding repeated code (srv_func)
Brought to you by:
thesumidero
I'm trying to add some more servers to linuxsms 0.77,
and just noticed that you everytime you need to add a
server, you add an entry at the top, and then link it
with the related function.
So I've changed your code a bit, so you now may specify
within HSERVERS which function for each server, and
just implement that function (sms_*). I hope I'm being
clear, perhaps looking at the patch you'll see what I mean.
the patch