recoverd: Separate each IP allocation algorithm into its own function
authorMartin Schwenke <martin@meltin.net>
Fri, 14 Dec 2012 06:12:01 +0000 (17:12 +1100)
committerMartin Schwenke <martin@meltin.net>
Mon, 7 Jan 2013 23:16:11 +0000 (10:16 +1100)
commit6a1d88a17321f7e1dc84b4823d5e7588516a6904
tree07c38f119423635da14866c04d44fa31d87906e3
parent8adb255e62dbe60d1e983047acd7b9c941231d11
recoverd: Separate each IP allocation algorithm into its own function

This makes the code much more readable and maintainable.

As a side effect, fix a memory leak in LCP2.

Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_takeover.c