From: paco Date: Fri, 15 Jun 2018 11:08:37 +0000 (+0200) Subject: ospf6d: unchecked return value (Coverity 1221437) X-Git-Tag: frr-6.1-dev~318^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2458%2Fhead;p=mirror%2Ffrr.git ospf6d: unchecked return value (Coverity 1221437) Signed-off-by: F. Aragon --- diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index cc8577b94e..9178bf2f6a 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -864,7 +864,6 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp) struct prefix *p; struct listnode *i; char strbuf[PREFIX2STR_BUFFER], drouter[32], bdrouter[32]; - const char *updown[3] = {"down", "up", NULL}; const char *type; struct timeval res, now; char duration[32]; @@ -881,7 +880,7 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp) type = "UNKNOWN"; vty_out(vty, "%s is %s, type %s\n", ifp->name, - updown[if_is_operative(ifp)], type); + (if_is_operative(ifp) ? "up" : "down"), type); vty_out(vty, " Interface ID: %d\n", ifp->ifindex); if (ifp->info == NULL) {