summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
Diffstat (limited to 'ripd')
-rw-r--r--ripd/ChangeLog4
-rw-r--r--ripd/ripd.c2
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);
}