diff options
author | Zach Brown <zab@redhat.com> | 2013-08-14 16:16:45 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-09-03 19:41:11 +0200 |
commit | c17a056f3841b2ebc024f5af7ed2c58279641d4b (patch) | |
tree | 3fdd5851d2a6ffbe66cf5131d39eda0d4f7c5d4a /cmds-balance.c | |
parent | 0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c (diff) |
btrfs-progs: use NULL instead of 0
These were mostly in option structs but there were a few gross string
pointer arguments given as 0.
Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-balance.c')
-rw-r--r-- | cmds-balance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds-balance.c b/cmds-balance.c index c78b7261..b7382efd 100644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -382,7 +382,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' }, - { 0, 0, 0, 0 } + { NULL, no_argument, NULL, 0 }, }; int opt = getopt_long(argc, argv, "d::s::m::fv", longopts, @@ -641,7 +641,7 @@ static int cmd_balance_status(int argc, char **argv) int longindex; static struct option longopts[] = { { "verbose", no_argument, NULL, 'v' }, - { 0, 0, 0, 0} + { NULL, no_argument, NULL, 0} }; int opt = getopt_long(argc, argv, "v", longopts, &longindex); @@ -713,7 +713,7 @@ const struct cmd_group balance_cmd_group = { { "cancel", cmd_balance_cancel, cmd_balance_cancel_usage, NULL, 0 }, { "resume", cmd_balance_resume, cmd_balance_resume_usage, NULL, 0 }, { "status", cmd_balance_status, cmd_balance_status_usage, NULL, 0 }, - { 0, 0, 0, 0, 0 } + NULL_CMD_STRUCT } }; |