]> git.proxmox.com Git - mirror_frr.git/commit - lib/routemap.c
lib: in routemap.c if using a switch for an enum get rid of enum
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 9 May 2019 03:00:52 +0000 (23:00 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 May 2019 22:33:22 +0000 (18:33 -0400)
commitba1707ca54638376f73dd7b9e55a183250af573f
treeb9f3de926464fd900c428c5383b2589ab381e7ca
parent0852f7cc05c08d48f25dd03bb1ade8ebf43200dc
lib: in routemap.c if using a switch for an enum get rid of enum

From looking at a current PR: #4297, we see that routemap.c code
was not properly updating dependency information for some
route_map_event_t enum types.  This has lead to dependancy
information not being updated properly.  While at this time
I do not know whether or not we need to update the switch
for the missing types, I do know that if we add something in
the future we should make the person adding the code consider
this.  So let's remove all `default:` switch statement handlers
from routemap.c when switching on an enum.  Future time will
need to be spent to figure out what is needed to be done here.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/routemap.c