summaryrefslogtreecommitdiffstats
path: root/commands/partition.c
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 /commands/partition.c
parenta9912f68c65850d2bed12111aabe8b779c95e365 (diff)
downloadbarebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.gz
barebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.xz
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 'commands/partition.c')
-rwxr-xr-xcommands/partition.c4
1 files changed, 2 insertions, 2 deletions
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 <device> <partition description>\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 <device>\n"
"Delete partitions previously added to a device with addpart.\n";