aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-10 17:38:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-10 17:38:46 +0000
commit0430194cc36ddd43b0e6d766d539355a76f5c959 (patch)
tree99e9787f768f4436a90d8261e782d0887999f758 /target/linux/ramips/files
parent4e332227d0cf7733b1fd1a82adf597f469b9a2f2 (diff)
downloadupstream-0430194cc36ddd43b0e6d766d539355a76f5c959.tar.gz
upstream-0430194cc36ddd43b0e6d766d539355a76f5c959.tar.bz2
upstream-0430194cc36ddd43b0e6d766d539355a76f5c959.zip
ramips: fix compiler warning in prom.c
SVN-Revision: 30424
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/common/prom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/common/prom.c b/target/linux/ramips/files/arch/mips/ralink/common/prom.c
index b207b66a8b..fdbcb79796 100644
--- a/target/linux/ramips/files/arch/mips/ralink/common/prom.c
+++ b/target/linux/ramips/files/arch/mips/ralink/common/prom.c
@@ -43,13 +43,13 @@ static inline void *to_ram_addr(void *addr)
return NULL;
}
+static char ramips_cmdline_buf[COMMAND_LINE_SIZE] __initdata;
static void __init prom_append_cmdline(const char *name,
const char *value)
{
- char buf[COMMAND_LINE_SIZE];
-
- snprintf(buf, sizeof(buf), " %s=%s", name, value);
- strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline));
+ snprintf(ramips_cmdline_buf, sizeof(ramips_cmdline_buf),
+ " %s=%s", name, value);
+ strlcat(arcs_cmdline, ramips_cmdline_buf, sizeof(arcs_cmdline));
}
#ifdef CONFIG_IMAGE_CMDLINE_HACK