]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nsenter: fix compiler warning
authorSami Kerola <kerolasa@iki.fi>
Sun, 20 Jan 2013 18:04:54 +0000 (18:04 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 25 Jan 2013 14:38:36 +0000 (15:38 +0100)
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>
sys-utils/nsenter.c

index f06001bf9913143f3750b77d43a1c63c2fb230b1..bb0c561441e3c0b2c61b2c28ed44662271842370 100644 (file)
@@ -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)