summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2011-09-22 20:10:44 +0000
committerSteven Barth <steven@midlink.org>2011-09-22 20:10:44 +0000
commitbc5d577ff9a9f87cd4f898d2b073332291087b84 (patch)
tree0e2fc654319cb5a73ff7053a762f2f38726e265d /main.c
parentd43eb8e1fd680fc14c398150665cf3a954fe5510 (diff)
downloadnetifd-bc5d577ff9a9f87cd4f898d2b073332291087b84.tar.gz
fix compilation with GCC 4.6 on Linux
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7d7bfcb..7602f23 100644
--- a/main.c
+++ b/main.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
+#include <unistd.h>
#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;
}