aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-device.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-device.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-device.c')
-rw-r--r--cmds-device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 5f7ad91..1c72e90 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -59,7 +59,7 @@ static int cmd_add_dev(int argc, char **argv)
static const struct option long_options[] = {
{ "nodiscard", optional_argument, NULL, 'K'},
{ "force", no_argument, NULL, 'f'},
- { 0, 0, 0, 0 }
+ { NULL, 0, NULL, 0}
};
int c = getopt_long(argc, argv, "Kf", long_options,
&long_index);
@@ -216,7 +216,7 @@ static int cmd_scan_dev(int argc, char **argv)
int long_index;
static const struct option long_options[] = {
{ "all-devices", no_argument, NULL, 'd'},
- { 0, 0, 0, 0 },
+ { NULL, 0, NULL, 0}
};
int c = getopt_long(argc, argv, "d", long_options,
&long_index);
@@ -514,6 +514,7 @@ int cmd_device_usage(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);