From: Sami Kerola Date: Sun, 20 Jan 2013 18:04:54 +0000 (+0000) Subject: nsenter: fix compiler warning X-Git-Tag: v2.23-rc1~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9905912fa74c037b4da9e277ab08afbafe6fb470;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Karel Zak --- diff --git a/sys-utils/nsenter.c b/sys-utils/nsenter.c index f06001bf99..bb0c561441 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)