]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: replace OSPF6_LSA_HEADER_END macro
authorAndrew Cooks <acooks.at.bda@gmail.com>
Mon, 20 May 2024 23:47:20 +0000 (09:47 +1000)
committerAndrew Cooks <acooks.at.bda@gmail.com>
Tue, 28 May 2024 04:05:56 +0000 (14:05 +1000)
commit4d06e27569ae09cfb44cfa07b2c8d027ecf0fd72
treed2c5f0aeb60b0d7f8285fffabe5712c0ab5f0eac
parentf7712516d8ea19629d346eca1d5ad71831ec1f22
ospf6d: replace OSPF6_LSA_HEADER_END macro

Replacing the macro with an inline function allows the compiler to
check the parameter type.

Use the replacement function consistently to reduce the number of
open coded pointer cast plus offset calculations.

use tools/indent.py to reformat all occurences of its use.

Signed-off-by: Andrew Cooks <acooks.at.bda@gmail.com>
ospf6d/ospf6_abr.c
ospf6d/ospf6_asbr.c
ospf6d/ospf6_gr.c
ospf6d/ospf6_intra.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_lsa.h
ospf6d/ospf6_lsdb.c
ospf6d/ospf6_nssa.c
ospf6d/ospf6_spf.c