From 1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 18 Dec 2000 03:57:16 +0000 Subject: Change calls to error_msg.* and strerror to use perror_msg.*. --- networking/ping.c | 4 ++-- networking/telnet.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'networking') diff --git a/networking/ping.c b/networking/ping.c index ccc535b26..4be2120c8 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: ping.c,v 1.28 2000/12/07 19:56:48 markw Exp $ + * $Id: ping.c,v 1.29 2000/12/18 03:57:16 kraai Exp $ * Mini ping implementation for busybox * * Copyright (C) 1999 by Randolph Chung @@ -325,7 +325,7 @@ static void sendping(int junk) (struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in)); if (i < 0) - error_msg_and_die("sendto: %s\n", strerror(errno)); + perror_msg_and_die("sendto"); else if ((size_t)i != sizeof(packet)) error_msg_and_die("ping wrote %d chars; %d expected\n", i, (int)sizeof(packet)); diff --git a/networking/telnet.c b/networking/telnet.c index 7a7bcfb9f..fff8c06b5 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -650,7 +650,7 @@ static int remote_connect(struct in_addr addr, int port) if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) { - error_msg_and_die("Unable to connect to remote host: %s\n", strerror(errno)); + perror_msg_and_die("Unable to connect to remote host"); } return s; } -- cgit v1.2.3