From 34c28896e87047d7888c407984598bdf861bbca1 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 21 Jan 2015 18:53:02 +0100 Subject: btrfs-progs: unify getopt table terminators Signed-off-by: David Sterba --- cmds-balance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds-balance.c') diff --git a/cmds-balance.c b/cmds-balance.c index 7524f338..6d8861e1 100644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -396,7 +396,7 @@ static int cmd_balance_start(int argc, char **argv) { "system", optional_argument, NULL, 's' }, { "force", no_argument, NULL, 'f' }, { "verbose", no_argument, NULL, 'v' }, - { NULL, no_argument, NULL, 0 }, + { NULL, 0, NULL, 0 } }; int opt = getopt_long(argc, argv, "d::s::m::fv", longopts, @@ -664,7 +664,7 @@ static int cmd_balance_status(int argc, char **argv) int longindex; static const struct option longopts[] = { { "verbose", no_argument, NULL, 'v' }, - { NULL, no_argument, NULL, 0} + { NULL, 0, NULL, 0 } }; int opt = getopt_long(argc, argv, "v", longopts, &longindex); -- cgit v1.2.3