]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: fix build problem with ancient json-c versions 8985/head
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 12 Jul 2021 12:29:06 +0000 (09:29 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 16 Sep 2021 15:26:48 +0000 (12:26 -0300)
commitb275f44a4a7f5338d8dd6cb2baf80b61b549913e
tree33c9cb8158e1be58345a4051cd2a475c4b14e713
parentb1c1004fb93b63a0a4502e35966cf9bd6cf0166a
ospf6d: fix build problem with ancient json-c versions

Some CI VMs are using really old versions of json-c (pre 2013 [1])
that expect filenames to be passed as "char *" instead of "const char *".

Add some explicit casts to fix the resulting compiler errors on those
VMs (passing "char *" when the API expects "const char *" is fine).
Hopefully this commit should be reverted once the CI is updated to use
newer versions of json-c.

[1] https://github.com/json-c/json-c/commit/20e4708c

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospf6d/ospf6_gr.c