]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Do not use `case default` for switches that have enum
authorDonald Sharp <sharpd@nvidia.com>
Sat, 17 Apr 2021 22:01:53 +0000 (18:01 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 4 May 2021 13:03:27 +0000 (09:03 -0400)
commit5d8c8d0b1d4f501482277c1dc18b91686fd9b247
tree907c680673dcf5409b456ac1fe58d9001863531d
parent6ec9c6a899dcbbd96398f29fbe5428e1085f752d
ospfd: Do not use `case default` for switches that have enum

Found a couple spots where FRR was using `case default` when
using a switch over an enum.  In this case we *must* enumerate
all states as part of the switch.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_sr.c
ospfd/ospf_zebra.c