summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-20 19:04:54 +0100
committerKarel Zak2013-01-25 15:38:36 +0100
commit9905912fa74c037b4da9e277ab08afbafe6fb470 (patch)
tree3757164303f77e99fd2e35ff37dd9fc23d75baa7 /sys-utils/nsenter.c
parentnsenter: adjust few error messages (diff)
downloadkernel-qcow2-util-linux-9905912fa74c037b4da9e277ab08afbafe6fb470.tar.gz
kernel-qcow2-util-linux-9905912fa74c037b4da9e277ab08afbafe6fb470.tar.xz
kernel-qcow2-util-linux-9905912fa74c037b4da9e277ab08afbafe6fb470.zip
nsenter: fix compiler warning
nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic] [kzak@redhat.com: - use initialize .fd to -1] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.c')
-rw-r--r--sys-utils/nsenter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/nsenter.c b/sys-utils/nsenter.c
index f06001bf9..bb0c56144 100644
--- a/sys-utils/nsenter.c
+++ b/sys-utils/nsenter.c
@@ -51,7 +51,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 = -1 }
};
static void usage(int status)