diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-07-14 16:48:41 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-07-14 16:59:44 +0200 |
commit | 20a6c6f31fac606910a8794b35783ae9ccd2230b (patch) | |
tree | 53e7dcdeae91f932a146ff932c387ca7873e7322 /nhrpd | |
parent | *: fix GCC 7 switch/case fallthrough warnings (diff) | |
download | frr-20a6c6f31fac606910a8794b35783ae9ccd2230b.tar.xz frr-20a6c6f31fac606910a8794b35783ae9ccd2230b.zip |
*: fix GCC 7 warnings/issues
The label initializer & nhrpd variable are just to shut up GCC 7,
the other two are actual bugs.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/nhrp_vty.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index af7fb0a50..ae5bd6e23 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -671,7 +671,6 @@ static void show_ip_nhrp_shortcut(struct nhrp_shortcut *s, void *pctx) static void show_ip_opennhrp_cache(struct nhrp_cache *c, void *pctx) { struct info_ctx *ctx = pctx; - struct vty *vty = ctx->vty; char buf[SU_ADDRSTRLEN]; if (ctx->afi != family2afi(sockunion_family(&c->remote_addr))) |