diff --git a/Makefile b/Makefile index 53b624f..b9c8e84 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ indent: nsjail.o: nsjail.h cmdline.h common.h log.h net.h subproc.h cmdline.o: cmdline.h common.h log.h util.h -contain.o: contain.h common.h log.h +contain.o: contain.h common.h log.h net.h util.h log.o: log.h common.h net.o: net.h common.h log.h subproc.o: subproc.h common.h contain.h log.h net.h sandbox.h util.h diff --git a/net.c b/net.c index 00f153f..0c52c84 100644 --- a/net.c +++ b/net.c @@ -98,7 +98,8 @@ bool netCloneMacVtapAndNS(struct nsjconf_t *nsjconf, int pid) char *const argv_add[] = { "ip", "link", "add", "link", (char *)nsjconf->iface, "name", IFACE_NAME, "netns", -pid_str, "type", "macvlan", "mode", "bridge", NULL }; + pid_str, "type", "macvlan", "mode", "bridge", NULL + }; if (netSystemSbinIp(nsjconf, argv_add) == false) { LOG_E("Couldn't create MACVTAP interface for '%s'", nsjconf->iface); return false;