X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.c;h=2df4539fb1e2ec6e6d9c036fa6fee70ceb2e94ad;hp=3d787f97b981ed5c3b833938e79028fc6cb67f41;hb=cd8b6676df948be45586b606cb32538b81e43f40;hpb=0b461898555d81efe1b57ec1cd9b9b1529cecd0f diff --git a/device.c b/device.c index 3d787f9..2df4539 100644 --- a/device.c +++ b/device.c @@ -177,7 +177,7 @@ void init_virtual_device(struct device *dev, const struct device_type *type, con dev->type = type; } -int init_device(struct device *dev, const struct device_type *type, const char *ifname) +int device_init(struct device *dev, const struct device_type *type, const char *ifname) { int ret; @@ -218,7 +218,7 @@ struct device *device_get(const char *name, bool create) return NULL; dev = calloc(1, sizeof(*dev)); - init_device(dev, &simple_type, name); + device_init(dev, &simple_type, name); return dev; }