diff options
author | Sami Kerola | 2013-01-20 19:04:54 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-25 15:38:36 +0100 |
commit | 9905912fa74c037b4da9e277ab08afbafe6fb470 (patch) | |
tree | 3757164303f77e99fd2e35ff37dd9fc23d75baa7 /sys-utils/nsenter.c | |
parent | nsenter: adjust few error messages (diff) | |
download | kernel-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.c | 2 |
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) |