[PATCH 4/6] nsenter: fix compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic]

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 sys-utils/nsenter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/nsenter.c b/sys-utils/nsenter.c
index ec8600a..b83f457 100644
--- a/sys-utils/nsenter.c
+++ b/sys-utils/nsenter.c
@@ -50,7 +50,7 @@ static struct namespace_file{
 	{ .nstype = CLONE_NEWNET,  .name = "ns/net",  .fd = -1 },
 	{ .nstype = CLONE_NEWPID,  .name = "ns/pid",  .fd = -1 },
 	{ .nstype = CLONE_NEWNS,   .name = "ns/mnt",  .fd = -1 },
-	{}
+	{ .nstype = 0, .name = NULL, .fd = 0 }
 };
 
 static void usage(int status)
-- 
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux