mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-05 10:45:49 +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:
parent
808a6b2720
commit
3ac9bb177e
@ -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;
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user