summaryrefslogtreecommitdiff
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-08-14 16:16:45 -0700
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:41:11 +0200
commitc17a056f3841b2ebc024f5af7ed2c58279641d4b (patch)
tree3fdd5851d2a6ffbe66cf5131d39eda0d4f7c5d4a /cmds-filesystem.c
parent0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c (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-filesystem.c')
-rw-r--r--cmds-filesystem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index a4e30ea5..ca0855bd 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -231,7 +231,7 @@ static int cmd_show(int argc, char **argv)
struct list_head *all_uuids;
struct btrfs_fs_devices *fs_devices;
struct list_head *cur_uuid;
- char *search = 0;
+ char *search = NULL;
int ret;
int where = BTRFS_SCAN_PROC;
int searchstart = 1;
@@ -512,7 +512,7 @@ const struct cmd_group filesystem_cmd_group = {
{ "balance", cmd_balance, NULL, &balance_cmd_group, 1 },
{ "resize", cmd_resize, cmd_resize_usage, NULL, 0 },
{ "label", cmd_label, cmd_label_usage, NULL, 0 },
- { 0, 0, 0, 0, 0 },
+ NULL_CMD_STRUCT
}
};