summaryrefslogtreecommitdiffhomepage
path: root/networking
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
committerMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
commitbe84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /networking
parente58771e73c0d8589a458ede4088f5ba70eff917b (diff)
Always report the applet name when doing error reporting.
Diffstat (limited to 'networking')
-rw-r--r--networking/nc.c2
-rw-r--r--networking/ping.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/networking/nc.c b/networking/nc.c
index a7e48d39b..b6afe6ffa 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -69,7 +69,7 @@ int nc_main(int argc, char **argv)
hostinfo = (struct hostent *) gethostbyname(*argv);
if (!hostinfo) {
- fatalError("nc: cannot resolve %s\n", *argv);
+ fatalError("cannot resolve %s\n", *argv);
}
address.sin_family = AF_INET;
diff --git a/networking/ping.c b/networking/ping.c
index c560a7ce2..0359abbd1 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.19 2000/07/09 06:59:58 andersen Exp $
+ * $Id: ping.c,v 1.20 2000/07/12 17:02:35 kraai Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -336,7 +336,7 @@ static void sendping(int ign)
(struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in));
if (i < 0)
- fatalError("ping: sendto: %s\n", strerror(errno));
+ fatalError("sendto: %s\n", strerror(errno));
else if (i != sizeof(packet))
fatalError("ping wrote %d chars; %d expected\n", i,
(int)sizeof(packet));