diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-17 15:30:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:48 +0100 |
commit | a9be4b0481fae5d6690074ea1dce19dfaad9af8b (patch) | |
tree | dffe7c2582102fe0fef37e62fde276add67eab59 /freebsd/usr.bin | |
parent | Move program control to thread structure (diff) | |
download | rtems-libbsd-a9be4b0481fae5d6690074ea1dce19dfaad9af8b.tar.bz2 |
Move shell items to separate file
Diffstat (limited to 'freebsd/usr.bin')
-rw-r--r-- | freebsd/usr.bin/netstat/main.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/freebsd/usr.bin/netstat/main.c b/freebsd/usr.bin/netstat/main.c index dc413942..4e531bb4 100644 --- a/freebsd/usr.bin/netstat/main.c +++ b/freebsd/usr.bin/netstat/main.c @@ -363,10 +363,11 @@ int live; /* true if we are examining a live system */ #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_netstat(int argc, char *argv[]) +int rtems_bsd_command_netstat(int argc, char *argv[]) { int i; @@ -1198,16 +1199,3 @@ usage(void) " netstat -gs [-s] [-f address_family] [-M core] [-N system]"); exit(1); } - -#ifdef __rtems__ - #include <rtems/shell.h> - - rtems_shell_cmd_t rtems_shell_NETSTAT_Command = { - "netstat", /* name */ - "netstat [args]", /* usage */ - "net", /* topic */ - rtems_shell_main_netstat, /* command */ - NULL, /* alias */ - NULL /* next */ - }; -#endif |