char pid_str[256];
snprintf(pid_str, sizeof(pid_str), "%d", pid);
- const char *argv[] =
- { "/sbin/ip", "link", "add", "link", (char *)nsjconf->iface_vs, "name", IFACE_NAME,
- "netns",
- pid_str, "type", "macvlan", "mode", "bridge", NULL
+ const char *const argv[] = {
+ "/sbin/ip", "link", "add", "link", (char *)nsjconf->iface_vs, "name", IFACE_NAME,
+ "netns", pid_str, "type", "macvlan", "mode", "bridge", NULL
};
if (subprocSystem(argv, environ) != 0) {
LOG_E("Couldn't create MACVTAP interface for '%s'", nsjconf->iface_vs);