mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 04:47:24 +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);
|
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;
|
||||||
|
@ -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;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user