diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | 6099b3b56956322567323c11fd698b2328c6826b (patch) | |
tree | fa537bd0eaa9f7d824f39445eabc928db59050ca /zebra/if_ioctl_solaris.c | |
parent | ae5e24d8678f1e3a60dde58d3382c5ba73d6bb27 (diff) |
2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* global: Replace strerror with safe_strerror. And vtysh/vtysh.c
needs to include "log.h" to pick up the declaration.
Diffstat (limited to 'zebra/if_ioctl_solaris.c')
-rw-r--r-- | zebra/if_ioctl_solaris.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c index 4f8284a3..1cbf555e 100644 --- a/zebra/if_ioctl_solaris.c +++ b/zebra/if_ioctl_solaris.c @@ -60,7 +60,7 @@ interface_list_ioctl (int af) if (sock < 0) { zlog_warn ("Can't make %s socket stream: %s", - (af == AF_INET ? "AF_INET" : "AF_INET6"), strerror (errno)); + (af == AF_INET ? "AF_INET" : "AF_INET6"), safe_strerror (errno)); if (zserv_privs.change(ZPRIVS_LOWER)) zlog (NULL, LOG_ERR, "Can't lower privileges"); @@ -79,7 +79,7 @@ calculate_lifc_len: /* must hold privileges to enter here */ if (ret < 0) { zlog_warn ("interface_list_ioctl: SIOCGLIFNUM failed %s", - strerror (errno)); + safe_strerror (errno)); close (sock); return -1; } @@ -120,7 +120,7 @@ calculate_lifc_len: /* must hold privileges to enter here */ if (errno == EINVAL) goto calculate_lifc_len; /* deliberately hold privileges */ - zlog_warn ("SIOCGLIFCONF: %s", strerror (errno)); + zlog_warn ("SIOCGLIFCONF: %s", safe_strerror (errno)); if (zserv_privs.change(ZPRIVS_LOWER)) zlog (NULL, LOG_ERR, "Can't lower privileges"); @@ -232,7 +232,7 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr) if (ret < 0) { zlog_warn ("SIOCGLIFDSTADDR (%s) fail: %s", - ifp->name, strerror (errno)); + ifp->name, safe_strerror (errno)); return ret; } memcpy (&dest, &lifreq.lifr_dstaddr, ADDRLEN (addr)); @@ -251,7 +251,7 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr) if (errno != EADDRNOTAVAIL) { zlog_warn ("SIOCGLIFNETMASK (%s) fail: %s", ifp->name, - strerror (errno)); + safe_strerror (errno)); return ret; } return 0; @@ -267,7 +267,7 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr) if (errno != EADDRNOTAVAIL) { zlog_warn ("SIOCGLIFBRDADDR (%s) fail: %s", - ifp->name, strerror (errno)); + ifp->name, safe_strerror (errno)); return ret; } return 0; @@ -289,7 +289,7 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr) if (ret < 0) { zlog_warn ("SIOCGLIFSUBNET (%s) fail: %s", - ifp->name, strerror (errno)); + ifp->name, safe_strerror (errno)); } else { |