summaryrefslogtreecommitdiff
path: root/commands.h
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 /commands.h
parent0173e6eb83dd120cf6d5063ef4fb5eef5c7eef4c (diff)
downloadbtrfs-progs-c17a056f3841b2ebc024f5af7ed2c58279641d4b.tar.gz
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 'commands.h')
-rw-r--r--commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands.h b/commands.h
index 3f12fab..0600a58 100644
--- a/commands.h
+++ b/commands.h
@@ -50,6 +50,8 @@ struct cmd_struct {
int hidden;
};
+#define NULL_CMD_STRUCT {NULL, NULL, NULL, NULL, 0}
+
struct cmd_group {
const char * const *usagestr;
const char *infostr;