aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-18 03:57:16 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-18 03:57:16 +0000
commitc86ef1b2547856c114bdc16ed374585ea0a570e9 (patch)
treeb85a425c19b299f5d8635599e11c78c96f12a4c2 /networking
parentb67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd (diff)
downloadbusybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.tar.gz
busybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.tar.bz2
busybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.zip
Change calls to error_msg.* and strerror to use perror_msg.*.
git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r--networking/ping.c4
-rw-r--r--networking/telnet.c2
2 files changed, 3 insertions, 3 deletions
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 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * $Id: ping.c,v 1.28 2000/12/07 19:56:48 markw Exp $ 3 * $Id: ping.c,v 1.29 2000/12/18 03:57:16 kraai Exp $
4 * Mini ping implementation for busybox 4 * Mini ping implementation for busybox
5 * 5 *
6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> 6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -325,7 +325,7 @@ static void sendping(int junk)
325 (struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in)); 325 (struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in));
326 326
327 if (i < 0) 327 if (i < 0)
328 error_msg_and_die("sendto: %s\n", strerror(errno)); 328 perror_msg_and_die("sendto");
329 else if ((size_t)i != sizeof(packet)) 329 else if ((size_t)i != sizeof(packet))
330 error_msg_and_die("ping wrote %d chars; %d expected\n", i, 330 error_msg_and_die("ping wrote %d chars; %d expected\n", i,
331 (int)sizeof(packet)); 331 (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)
650 650
651 if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) 651 if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0)
652 { 652 {
653 error_msg_and_die("Unable to connect to remote host: %s\n", strerror(errno)); 653 perror_msg_and_die("Unable to connect to remote host");
654 } 654 }
655 return s; 655 return s;
656} 656}