mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 19:59:34 +00:00
Merge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value
ospf6d: unchecked return value (Coverity 1221437)
This commit is contained in:
commit
6389e663e9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user