]> git.puffer.fish Git - matthieu/frr.git/commit
lib: make node_parent more generic
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Aug 2021 10:14:27 +0000 (13:14 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 26 Aug 2021 16:43:23 +0000 (19:43 +0300)
commitc1e7a5e45e135ad8047b192893a544e986d244c3
tree661b6c9c0a4560f05483c31ba09335f9508e6947
parentd448e2c5f96b3430fd643f52b9264ca87a45c291
lib: make node_parent more generic

Instead of adding a separate case clause for every node, just find the
node structure in the global list and get its parent node from there.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/command.c