CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/04/20 02:03:13
Modified files:
usr.sbin/bgpd : rde_decide.c
Log message:
prefix_insert() and prefix_remove() emulate a tail queue by keeping the
tail pointer (pointer to last element) around and depending on the state
of the list insert at head or insert after tailp. Now gcc has a hard time
to realize that the tail pointer is not used uninitalized. So rewrite the
code to be more explicit about tailp handling (also rename the pointer
to be more explicit). All in all this should be more readable and silences
the gcc warning as well.