mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 04:34:25 +08:00
tests: Fix define usage
This commit is contained in:
parent
d0ecc91ac1
commit
675acb2f10
@ -100,7 +100,7 @@ default_network_ifconfig_lo0(void)
|
||||
assert(exit_code == EX_OK);
|
||||
}
|
||||
|
||||
#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
static void
|
||||
default_network_ifconfig_hwif0(char *ifname)
|
||||
{
|
||||
@ -223,7 +223,7 @@ static void
|
||||
Init(rtems_task_argument arg)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
|
||||
char ifnamebuf[IF_NAMESIZE];
|
||||
#endif
|
||||
@ -252,7 +252,7 @@ Init(rtems_task_argument arg)
|
||||
|
||||
rtems_bsd_initialize();
|
||||
|
||||
#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
|
||||
ifname = if_indextoname(1, &ifnamebuf[0]);
|
||||
assert(ifname != NULL);
|
||||
@ -266,7 +266,7 @@ Init(rtems_task_argument arg)
|
||||
assert(sc == RTEMS_SUCCESSFUL);
|
||||
|
||||
default_network_ifconfig_lo0();
|
||||
#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
|
||||
default_network_ifconfig_hwif0(ifname);
|
||||
default_network_route_hwif0(ifname);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user