]> git.puffer.fish Git - matthieu/frr.git/commit
lib: simplify distribute.c's code.
authorMatthieu Boutier <boutier@pps.univ-paris-diderot.fr>
Thu, 22 Sep 2016 21:11:04 +0000 (18:11 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 26 Sep 2016 14:52:41 +0000 (10:52 -0400)
commitee5bb56117a7732f13924d101434452f46c2a3bc
tree5cb848ff2e04a8afd5f528bf637cd0345b0173bd
parent0fc452dc57467bd1ab1dabe119be979d996af3f9
lib: simplify distribute.c's code.

Use loops and variables instead of doing each cases by hand.
Use static functions instead of rewriting code.
lib/distribute.c