[PATCH 4/6] nsenter: fix compiler warning

Sami Kerola
2013-01-20T18:05:12Z

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

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
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