]> git.proxmox.com Git - mirror_frr.git/commit - lib/module.h
lib: a few more trivial changes for C++ compatibility
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 11 Feb 2019 18:10:40 +0000 (16:10 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 12 Feb 2019 00:34:12 +0000 (22:34 -0200)
commit7f04943d6b860f5e74a8fc652a106c3a2046a0ce
treedba085741a8b01b0781c70f07d6db544a267ad82
parent343cd13e17062eb024f45b44036d930988bd0299
lib: a few more trivial changes for C++ compatibility

* command_graph.h: stop using "new" as a parameter name as that's a
  reserved C++ keyword.

* module.h: avoid using C99 designated initializers since C++ doesn't
  support them. This change hurts code readability quite considerably,
  so we should try to find a better solution later.

* pw.h: remove unneeded empty structure to silence a C++ warning.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/command_graph.h
lib/module.h
lib/pw.h