[Sheepdog] [PATCH 1/9] const correctness: subcommand struct

Steven Dake sdake at redhat.com
Mon May 17 18:37:09 CEST 2010


The first subcommand struct member (char *) is really a (const char *).

Signed-off-by: Steven Dake <sdake at redhat.com>
---
 collie/collie.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/collie/collie.c b/collie/collie.c
index 7b4043f..e778459 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -525,7 +525,7 @@ static void parse_objs(uint64_t oid, obj_parser_func_t func, void *data)
 #define SUBCMD_FLAG_NEED_THIRD_ARG (1 << 1)
 
 struct subcommand {
-	char *name;
+	const char *name;
 	unsigned long flags;
 	int (*fn)(int, char **);
 };
-- 
1.6.2.5




More information about the sheepdog mailing list