diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-10 17:38:46 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-10 17:38:46 +0000 |
commit | 0822eb50cf9cdb078cdd7d4b8a54f2e63f5a71d3 (patch) | |
tree | 8d52c7500702b2e377e9e37e58838c98d2354f77 /target/linux/ramips/files/arch | |
parent | 77500948462b71f9b64f9e2a617d6d09d44d6bd1 (diff) | |
download | master-187ad058-0822eb50cf9cdb078cdd7d4b8a54f2e63f5a71d3.tar.gz master-187ad058-0822eb50cf9cdb078cdd7d4b8a54f2e63f5a71d3.tar.bz2 master-187ad058-0822eb50cf9cdb078cdd7d4b8a54f2e63f5a71d3.zip |
ramips: fix compiler warning in prom.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30424 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/common/prom.c | 8 |
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 |