From: Robert Swiecki Date: Fri, 7 Jul 2017 10:13:24 +0000 (+0200) Subject: net: const'ify array X-Git-Tag: 1.5~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65e00f3f6537df943a3c164b90f15c0aa23265df;p=platform%2Fupstream%2Fnsjail.git net: const'ify array --- diff --git a/net.c b/net.c index 4f96cbd..d3963b0 100644 --- a/net.c +++ b/net.c @@ -133,10 +133,9 @@ bool netInitNsFromParent(struct nsjconf_t *nsjconf, int pid) 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);