fix compiler warnings
[project/netifd.git] / system-dummy.c
index f24f686..eab9277 100644 (file)
@@ -1,6 +1,10 @@
 #include <stdio.h>
 #include <string.h>
 
+#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;
 }