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/sbin/route | |
parent | Move program control to thread structure (diff) | |
download | rtems-libbsd-a9be4b0481fae5d6690074ea1dce19dfaad9af8b.tar.bz2 |
Move shell items to separate file
Diffstat (limited to 'freebsd/sbin/route')
-rw-r--r-- | freebsd/sbin/route/route.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/freebsd/sbin/route/route.c b/freebsd/sbin/route/route.c index 964188ff..1442e095 100644 --- a/freebsd/sbin/route/route.c +++ b/freebsd/sbin/route/route.c @@ -130,10 +130,11 @@ usage(cp) #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_route(int argc, char *argv[]) +int rtems_bsd_command_route(int argc, char *argv[]) { return rtems_bsd_program_call_main("route", main, argc, argv); } @@ -1694,16 +1695,3 @@ atalk_ntoa(struct at_addr at) (void) snprintf(buf, sizeof(buf), "%u.%u", ntohs(at.s_net), at.s_node); return(buf); } - -#ifdef __rtems__ - #include <rtems/shell.h> - - rtems_shell_cmd_t rtems_shell_ROUTE_Command = { - "route", /* name */ - "route [args]", /* usage */ - "net", /* topic */ - rtems_shell_main_route, /* command */ - NULL, /* alias */ - NULL /* next */ - }; -#endif |