X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-dummy.c;h=eab927705b21c1251a44037b9d706dffc1f9e60d;hp=f24f686925a113abdc042dbd9c0cc11ba5e85185;hb=03f9afd81fcb9943648f5398a2bda5e7d90ca4a7;hpb=f6fb6bee2c29f31d13d0b0288f4f680b6b56e9ba diff --git a/system-dummy.c b/system-dummy.c index f24f686..eab9277 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -1,6 +1,10 @@ #include #include +#ifndef DEBUG +#define DEBUG +#endif + #include "netifd.h" #include "device.h" @@ -57,7 +61,7 @@ int system_if_check(struct device *dev) dev->ifindex = 0; if (!strcmp(dev->ifname, "eth0")) - set_device_present(dev, true); + device_set_present(dev, true); return 0; }