diff options
author | ajs <ajs> | 2005-01-30 18:49:28 +0000 |
---|---|---|
committer | ajs <ajs> | 2005-01-30 18:49:28 +0000 |
commit | 6a52d0d155fc8b892e30cdb5e3fbe4c2779bd4cd (patch) | |
tree | d4bfab8286e497e30c5ebfed099c317a9397c623 /ripd | |
parent | 656b4eeec1fb30402ad2001976c05c6f44fafb34 (diff) |
2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* daemon.c: (daemon) Replace perror with zlog_err.
* vty.c: (vty_serv_un) Replace perror with zlog_err.
* ripd.c: (rip_create_socket) Replace perror with zlog_err.
* ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with
zlog_err.
* ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with
zlog_err.
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/ChangeLog | 4 | ||||
-rw-r--r-- | ripd/ripd.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog index 5a5d1b4b..60be27ea 100644 --- a/ripd/ChangeLog +++ b/ripd/ChangeLog @@ -1,5 +1,9 @@ 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * ripd.c: (rip_create_socket) Replace perror with zlog_err. + +2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * ripd.c: (rip_create_socket) Save errno before calling ripd_privs.change. diff --git a/ripd/ripd.c b/ripd/ripd.c index 2a345a66..b5d130e8 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1985,7 +1985,7 @@ rip_create_socket () sock = socket (AF_INET, SOCK_DGRAM, 0); if (sock < 0) { - perror ("socket"); + zlog_err("Cannot create UDP socket: %s", safe_strerror(errno)); exit (1); } |