summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/ping
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-17 15:30:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:48 +0100
commita9be4b0481fae5d6690074ea1dce19dfaad9af8b (patch)
treedffe7c2582102fe0fef37e62fde276add67eab59 /freebsd/sbin/ping
parentMove program control to thread structure (diff)
downloadrtems-libbsd-a9be4b0481fae5d6690074ea1dce19dfaad9af8b.tar.bz2
Move shell items to separate file
Diffstat (limited to 'freebsd/sbin/ping')
-rw-r--r--freebsd/sbin/ping/ping.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/freebsd/sbin/ping/ping.c b/freebsd/sbin/ping/ping.c
index f1b4b912..4a2554c0 100644
--- a/freebsd/sbin/ping/ping.c
+++ b/freebsd/sbin/ping/ping.c
@@ -219,10 +219,11 @@ static void usage(void) __dead2;
#ifdef __rtems__
#include <machine/rtems-bsd-program.h>
+#include <machine/rtems-bsd-commands.h>
static int main(int argc, char **argv);
-static int rtems_shell_main_ping(int argc, char *argv[])
+int rtems_bsd_command_ping(int argc, char *argv[])
{
BBELL = '\a';
BSPACE = '\b';
@@ -1769,16 +1770,3 @@ usage()
" [-z tos] mcast-group");
exit(EX_USAGE);
}
-
-#ifdef __rtems__
- #include <rtems/shell.h>
-
- rtems_shell_cmd_t rtems_shell_PING_Command = {
- "ping", /* name */
- "ping [args]", /* usage */
- "net", /* topic */
- rtems_shell_main_ping, /* command */
- NULL, /* alias */
- NULL /* next */
- };
-#endif