batman-adv: move smallest_signed_int(), seq_before() and seq_after() into main.h
authorAntonio Quartulli <ordex@autistici.org>
Wed, 18 May 2011 07:20:50 +0000 (09:20 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:35 +0000 (07:39 +0200)
commitf5d33d37786af139cecde5af831d64a671bb756b
tree6978df634a520e574fbd10ec62c980d3079fdcd3
parent728cbc6ac1eef89660875c70a602c1a0ba8df4ff
batman-adv: move smallest_signed_int(), seq_before() and seq_after() into main.h

smallest_signed_int(), seq_before() and seq_after() are very useful
functions that help to handle comparisons between sequence numbers.
However they were only defined in vis.c. With this patch every
batman-adv function will be able to use them.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/main.h
net/batman-adv/vis.c