forked from Mirrors/btrfs-progs
btrfs-progs: unify getopt table terminators
Signed-off-by: David Sterba <dsterba@suse.cz>master
parent
58a3952461
commit
34c28896e8
|
@ -1037,7 +1037,7 @@ int main(int ac, char **av)
|
|||
{ "item", 0, NULL, 'I'},
|
||||
{ "dir-item", 0, NULL, 'D'},
|
||||
{ "delete", 0, NULL, 'd'},
|
||||
{ 0, 0, 0, 0}
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
|
||||
c = getopt_long(ac, av, "l:c:b:eEkuUi:f:x:m:K:IDd", long_options,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -882,6 +882,7 @@ int cmd_filesystem_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, "bhHkmgtT", long_options,
|
||||
&long_index);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -264,7 +264,7 @@ static int cmd_qgroup_show(int argc, char **argv)
|
|||
{"iec", no_argument, NULL, GETOPT_VAL_IEC},
|
||||
{ "human-readable", no_argument, NULL,
|
||||
GETOPT_VAL_HUMAN_READABLE},
|
||||
{0, 0, 0, 0}
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
c = getopt_long(argc, argv, "pcreFf",
|
||||
long_options, &option_index);
|
||||
|
|
Loading…
Reference in New Issue