Changeset 675acb2 in rtems-libbsd


Ignore:
Timestamp:
Mar 30, 2015, 8:33:24 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
012c263
Parents:
d0ecc91
git-author:
Sebastian Huber <sebastian.huber@…> (03/30/15 20:33:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/30/15 21:02:15)
Message:

tests: Fix define usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/include/rtems/bsd/test/default-network-init.h

    rd0ecc91 r675acb2  
    101101}
    102102
    103 #ifdef DEFAULT_NETWORK_NO_INTERFACE_0
     103#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    104104static void
    105105default_network_ifconfig_hwif0(char *ifname)
     
    224224{
    225225        rtems_status_code sc;
    226 #ifdef DEFAULT_NETWORK_NO_INTERFACE_0
     226#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    227227#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
    228228        char ifnamebuf[IF_NAMESIZE];
     
    253253        rtems_bsd_initialize();
    254254
    255 #ifdef DEFAULT_NETWORK_NO_INTERFACE_0
     255#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    256256#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
    257257        ifname = if_indextoname(1, &ifnamebuf[0]);
     
    267267
    268268        default_network_ifconfig_lo0();
    269 #ifdef DEFAULT_NETWORK_NO_INTERFACE_0
     269#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    270270        default_network_ifconfig_hwif0(ifname);
    271271        default_network_route_hwif0(ifname);
Note: See TracChangeset for help on using the changeset viewer.