summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-04-04 11:46:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-04-04 14:45:04 +0200
commit50cc8c5412e804480a10ecdd9546c7b6ad21760e (patch)
tree86d3a04fd004996fc91839b9a7cad705090bcdc0 /include/command.h
parenta9912f68c65850d2bed12111aabe8b779c95e365 (diff)
downloadbarebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.gz
Subject: [PATCH] [general] Fixed constant strings in data section issue
For practical reasons I changed all string literals assumed to be constant to reside in .rodata subsection at end of .text section. Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/command.h b/include/command.h
index 563d24f43d..fa9acc879f 100644
--- a/include/command.h
+++ b/include/command.h
@@ -44,16 +44,16 @@ extern struct list_head command_list;
*/
struct cmd_tbl_s {
- char *name; /* Command Name */
- char **aliases;
+ const char *name; /* Command Name */
+ const char **aliases;
int maxargs; /* maximum number of arguments */
/* Implementation function */
int (*cmd)(struct cmd_tbl_s *, int, char *[]);
- char *usage; /* Usage message (short) */
+ const char *usage; /* Usage message (short) */
struct list_head list; /* List of commands */
#ifdef CONFIG_LONGHELP
- char *help; /* Help message (long) */
+ const char *help; /* Help message (long) */
#endif
}
#ifdef __x86_64__