diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-04-21 10:13:07 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-08 21:01:33 +0200 |
commit | 9b6710b406ff7ba6e6b6d356a678edb746066424 (patch) | |
tree | 793c629ac476173dd110b26b47a23ce388b90f00 /zebra/ioctl.c | |
parent | lib: fix "reduce strcmp in CLI" fallout (10bac801) (diff) | |
download | frr-9b6710b406ff7ba6e6b6d356a678edb746066424.tar.xz frr-9b6710b406ff7ba6e6b6d356a678edb746066424.zip |
*: fix more initialisers (for BSD)
FreeBSD and NetBSD spew a few more warnings about variable initialisers.
Found with OSR's/NetDEF's fancy new CI system.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r-- | zebra/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 24df98557..f91ee2438 100644 --- a/zebra/ioctl.c +++ b/zebra/ioctl.c @@ -52,7 +52,7 @@ if_ioctl (u_long request, caddr_t buffer) { int sock; int ret; - int err; + int err = 0; if (zserv_privs.change(ZPRIVS_RAISE)) zlog (NULL, LOG_ERR, "Can't raise privileges"); @@ -85,7 +85,7 @@ if_ioctl_ipv6 (u_long request, caddr_t buffer) { int sock; int ret; - int err; + int err = 0; if (zserv_privs.change(ZPRIVS_RAISE)) zlog (NULL, LOG_ERR, "Can't raise privileges"); |