From: Steven Barth Date: Thu, 22 Sep 2011 20:10:44 +0000 (+0000) Subject: fix compilation with GCC 4.6 on Linux X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=bc5d577ff9a9f87cd4f898d2b073332291087b84 fix compilation with GCC 4.6 on Linux --- diff --git a/device.c b/device.c index 7307414..8bc8b53 100644 --- a/device.c +++ b/device.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "netifd.h" #include "system.h" diff --git a/main.c b/main.c index 7d7bfcb..7602f23 100644 --- a/main.c +++ b/main.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "netifd.h" #include "ubus.h" @@ -57,7 +58,7 @@ int main(int argc, char **argv) } } - if (netifd_ubus_init(NULL) < 0) { + if (netifd_ubus_init(socket) < 0) { fprintf(stderr, "Failed to connect to ubus\n"); return 1; }