diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-09 14:11:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-09 14:11:10 -0400 |
| commit | 5381b930b38edbf6797ae058593546b718133cb1 (patch) | |
| tree | aeaabaa7a8231f096f91d07d9a488564761a9a82 /zebra/if_ioctl_solaris.c | |
| parent | 55e6c1329f78d5c672a58ff1fad86d7711a649c3 (diff) | |
| parent | 7b34167d7dac6e898c49c675cfc80ae68c64bc98 (diff) | |
Merge pull request #2965 from opensourcerouting/buildfoo-20180904
more build fixes & warning-free build
Diffstat (limited to 'zebra/if_ioctl_solaris.c')
| -rw-r--r-- | zebra/if_ioctl_solaris.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c index 5a58fe1751..7ec73ea111 100644 --- a/zebra/if_ioctl_solaris.c +++ b/zebra/if_ioctl_solaris.c @@ -39,6 +39,7 @@ #include "zebra/interface.h" #include "zebra/ioctl_solaris.h" #include "zebra/rib.h" +#include "zebra/rt.h" static int if_get_addr(struct interface *, struct sockaddr *, const char *); static void interface_info_ioctl(struct interface *); @@ -55,7 +56,6 @@ static int interface_list_ioctl(int af) struct lifconf lifconf; struct interface *ifp; int n; - int save_errno; size_t needed, lastneeded = 0; char *buf = NULL; @@ -76,13 +76,11 @@ calculate_lifc_len: lifn.lifn_flags = LIFC_NOXMIT; /* we want NOXMIT interfaces too */ ret = ioctl(sock, SIOCGLIFNUM, &lifn); - save_errno = errno; - } if (ret < 0) { zlog_warn("interface_list_ioctl: SIOCGLIFNUM failed %s", - safe_strerror(save_errno)); + safe_strerror(errno)); close(sock); return -1; } |
