diff options
author | Matt Kraai | 2000-12-18 03:57:16 +0000 |
---|---|---|
committer | Matt Kraai | 2000-12-18 03:57:16 +0000 |
commit | 1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5 (patch) | |
tree | b85a425c19b299f5d8635599e11c78c96f12a4c2 /networking | |
parent | 0dab82997777bffb95d01d68e1628ee79207a03d (diff) | |
download | busybox-1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5.zip busybox-1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5.tar.gz |
Change calls to error_msg.* and strerror to use perror_msg.*.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ping.c | 4 | ||||
-rw-r--r-- | networking/telnet.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/networking/ping.c b/networking/ping.c index ccc535b..4be2120 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 <tausq@debian.org> @@ -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 7a7bcfb..fff8c06 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; } |