aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-21 18:53:02 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-21 18:56:40 +0100
commit34c28896e87047d7888c407984598bdf861bbca1 (patch)
treeb29d1afb59357f07a1d748d6c873ee323bfe860f /cmds-filesystem.c
parent58a39524619f38d193b8adc3d57888ec07b612aa (diff)
downloadbtrfs-progs-34c28896e87047d7888c407984598bdf861bbca1.tar.gz
btrfs-progs-34c28896e87047d7888c407984598bdf861bbca1.tar.xz
btrfs-progs-34c28896e87047d7888c407984598bdf861bbca1.zip
btrfs-progs: unify getopt table terminators
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index ec422e3..528fda3 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -221,6 +221,7 @@ static int cmd_filesystem_df(int argc, char **argv)
{ "iec", no_argument, NULL, GETOPT_VAL_IEC},
{ "human-readable", no_argument, NULL,
GETOPT_VAL_HUMAN_READABLE},
+ { NULL, 0, NULL, 0 }
};
int c = getopt_long(argc, argv, "bhHkmgt", long_options,
&long_index);
@@ -841,7 +842,7 @@ static int cmd_show(int argc, char **argv)
static const struct option long_options[] = {
{ "all-devices", no_argument, NULL, 'd'},
{ "mounted", no_argument, NULL, 'm'},
- { NULL, no_argument, NULL, 0 },
+ { NULL, 0, NULL, 0 }
};
int c = getopt_long(argc, argv, "dm", long_options,
&long_index);