]> git.proxmox.com Git - mirror_frr.git/commit - staticd/static_zebra.c
lib, staticd: return values even after an assert
authorDonald Sharp <sharpd@nvidia.com>
Fri, 16 Dec 2022 12:38:58 +0000 (07:38 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 16 Dec 2022 12:38:58 +0000 (07:38 -0500)
commit16c150f27b836fc778b7e0aac4da9200ffe9efbe
treeb2a7474af38a7fd48a75f040bafa179517e193c9
parent507621139bf506b76a587435f969daf86a035b95
lib, staticd: return values even after an assert

When compiling with -fsanitize=thread.  I started getting this error:

staticd/static_zebra.c: In function ‘static_zebra_nht_get_prefix’:
staticd/static_zebra.c:316:1: error: control reaches end of non-void function [-Werror=return-type]
  316 | }
      | ^

Just to make future efforts still work, let's just make the compiler happy.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/zlog_targets.c
staticd/static_zebra.c