summaryrefslogtreecommitdiff
path: root/ping.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-16 20:57:15 +0000
committerMatt Kraai2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /ping.c
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-bf181b9338152759fd56c8009e9a962a84808e7c.zip
busybox-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
Extract usage information into a separate file.
Diffstat (limited to 'ping.c')
-rw-r--r--ping.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/ping.c b/ping.c
index b2b4880..5f44a68 100644
--- a/ping.c
+++ b/ping.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.22 2000/07/14 06:49:52 andersen Exp $
+ * $Id: ping.c,v 1.23 2000/07/16 20:57:15 kraai Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -174,12 +174,6 @@ static int in_cksum(unsigned short *buf, int sz)
/* simple version */
#ifdef BB_FEATURE_SIMPLE_PING
-static const char *ping_usage = "ping host\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nSend ICMP ECHO_REQUEST packets to network hosts\n"
-#endif
- ;
-
static char *hostname = NULL;
static void noresp(int ign)
@@ -267,17 +261,6 @@ extern int ping_main(int argc, char **argv)
#else /* ! BB_FEATURE_SIMPLE_PING */
/* full(er) version */
-static const char *ping_usage = "ping [OPTION]... host\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
- "Options:\n"
- "\t-c COUNT\tSend only COUNT pings.\n"
- "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
- "\t-q\t\tQuiet mode, only displays output at start\n"
- "\t\t\tand when finished.\n"
-#endif
- ;
-
static char *hostname = NULL;
static struct sockaddr_in pingaddr;
static int pingsock = -1;