diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | a113290b29b12bc66ed2d726b7d2ff971b50b8f2 (patch) | |
tree | 9e742d207a6a74c84738e9abf86dbb804e399293 /zebra/rt_ioctl.c | |
parent | d3cd86f5876e014e59268b60e8077d7e8b4f5332 (diff) | |
download | quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.bz2 quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.xz |
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/rt_ioctl.c')
-rw-r--r-- | zebra/rt_ioctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/rt_ioctl.c b/zebra/rt_ioctl.c index d470572b..34840104 100644 --- a/zebra/rt_ioctl.c +++ b/zebra/rt_ioctl.c @@ -151,7 +151,7 @@ kernel_add_route (struct prefix_ipv4 *dest, struct in_addr *gate, } close (sock); - zlog_warn ("write : %s (%d)", strerror (errno), errno); + zlog_warn ("write : %s (%d)", safe_strerror (errno), errno); return 1; } close (sock); @@ -326,7 +326,7 @@ kernel_ioctl_ipv4 (u_long cmd, struct prefix *p, struct rib *rib, int family) } close (sock); - zlog_warn ("write : %s (%d)", strerror (errno), errno); + zlog_warn ("write : %s (%d)", safe_strerror (errno), errno); return ret; } close (sock); @@ -411,7 +411,7 @@ kernel_ioctl_ipv6 (u_long type, struct prefix_ipv6 *dest, struct in6_addr *gate, if (ret < 0) { zlog_warn ("can't %s ipv6 route: %s\n", type == SIOCADDRT ? "add" : "delete", - strerror(errno)); + safe_strerror(errno)); ret = errno; close (sock); return ret; @@ -526,7 +526,7 @@ kernel_ioctl_ipv6_multipath (u_long cmd, struct prefix *p, struct rib *rib, { zlog_warn ("can't %s ipv6 route: %s\n", cmd == SIOCADDRT ? "add" : "delete", - strerror(errno)); + safe_strerror(errno)); ret = errno; close (sock); return ret; |