summaryrefslogtreecommitdiff
path: root/zebra/zebra_fpm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-12 22:12:13 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-17 18:45:02 -0500
commit4b2792b53b85533011e3943fc62810b0da3b6a95 (patch)
tree61788587312ace0c427b2bb7f2a155ebf7411a80 /zebra/zebra_fpm.c
parent7b25dca6b7d599f5e885b21ed40dc0fb418c4bcc (diff)
zebra: Cleanup zebra_static CLANG/SA issues.
When compiling using CLANG's SA, cleanup the SA issues found. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_fpm.c')
-rw-r--r--zebra/zebra_fpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c
index 80512c71f6..8b337152b4 100644
--- a/zebra/zebra_fpm.c
+++ b/zebra/zebra_fpm.c
@@ -1622,14 +1622,16 @@ zfpm_init_message_format (const char *format)
{
int have_netlink, have_protobuf;
- have_netlink = have_protobuf = 0;
-
#ifdef HAVE_NETLINK
have_netlink = 1;
+#else
+ have_netlink = 0;
#endif
#ifdef HAVE_PROTOBUF
have_protobuf = 1;
+#else
+ have_protobuf = 0;
#endif
zfpm_g->message_format = ZFPM_MSG_FORMAT_NONE;