From 50cc8c5412e804480a10ecdd9546c7b6ad21760e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 4 Apr 2008 11:46:55 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- commands/partition.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/partition.c') diff --git a/commands/partition.c b/commands/partition.c index 164d4f0b5e..dfc4e0d1aa 100755 --- a/commands/partition.c +++ b/commands/partition.c @@ -226,7 +226,7 @@ err_out: return 1; } -static __maybe_unused char cmd_addpart_help[] = +static const __maybe_unused char cmd_addpart_help[] = "Usage: addpart \n" "\n" "addpart adds a partition description to a device. The partition description\n" @@ -286,7 +286,7 @@ static int do_delpart(cmd_tbl_t * cmdtp, int argc, char *argv[]) return 0; } -static __maybe_unused char cmd_delpart_help[] = +static const __maybe_unused char cmd_delpart_help[] = "Usage: delpart \n" "Delete partitions previously added to a device with addpart.\n"; -- cgit v1.2.3