aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-12 06:08:33 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-12 06:08:33 +0000
commit4e486a5d00830990cdfda68eb5dceefab43635f5 (patch)
treec5ce74999159be05372f47a6cfac9610019fa749 /networking/ping.c
parent1dcf218e60849b58b1efa7ce43cf0c4e14f95617 (diff)
downloadbusybox-w32-4e486a5d00830990cdfda68eb5dceefab43635f5.tar.gz
busybox-w32-4e486a5d00830990cdfda68eb5dceefab43635f5.tar.bz2
busybox-w32-4e486a5d00830990cdfda68eb5dceefab43635f5.zip
Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PING
would return 0 instead of EXIT_FAILURE when no response was received.
Diffstat (limited to 'networking/ping.c')
-rw-r--r--networking/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c
index f21f2b1a8..044b547ac 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.52 2002/06/06 11:47:00 andersen Exp $ 3 * $Id: ping.c,v 1.53 2003/01/12 06:08:33 andersen 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>
@@ -179,7 +179,7 @@ static char *hostname = NULL;
179static void noresp(int ign) 179static void noresp(int ign)
180{ 180{
181 printf("No response from %s\n", hostname); 181 printf("No response from %s\n", hostname);
182 exit(0); 182 exit(EXIT_FAILURE);
183} 183}
184 184
185static void ping(const char *host) 185static void ping(const char *host)