mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 09:10:09 +08:00
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:
@@ -156,8 +156,13 @@ usage(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef __rtems__
|
||||
int
|
||||
main_ifconfig(int argc, char *argv[])
|
||||
#else
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
int c, all, namesonly, downonly, uponly;
|
||||
const struct afswtch *afp = NULL;
|
||||
|
@@ -132,8 +132,12 @@ usage(cp)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
#ifdef __rtems__
|
||||
int
|
||||
route_main(argc, argv)
|
||||
main_route(argc, argv)
|
||||
#else
|
||||
main(argc, argv)
|
||||
#endif
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
|
Reference in New Issue
Block a user