route.c and ifconfig.c: Added rtems style mains.

Fixed route.c to match freebsd version with only rtems additions.
This commit is contained in:
Jennifer Averett 2012-10-05 13:41:20 -05:00
parent 808a6b2720
commit 3ac9bb177e
2 changed files with 10 additions and 1 deletions

View File

@ -156,8 +156,13 @@ usage(void)
exit(1); exit(1);
} }
#ifdef __rtems__
int
main_ifconfig(int argc, char *argv[])
#else
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
#endif
{ {
int c, all, namesonly, downonly, uponly; int c, all, namesonly, downonly, uponly;
const struct afswtch *afp = NULL; const struct afswtch *afp = NULL;

View File

@ -132,8 +132,12 @@ usage(cp)
/* NOTREACHED */ /* NOTREACHED */
} }
#ifdef __rtems__
int int
route_main(argc, argv) main_route(argc, argv)
#else
main(argc, argv)
#endif
int argc; int argc;
char **argv; char **argv;
{ {