aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-14 13:07:47 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-14 13:07:47 +0000
commit1fdbb4fcbd7ff57323ca65daaddb22d242d8bf01 (patch)
treeb0d8b236c7ab64ff52634c7d275738fb1b2d6d62 /target/linux/ar71xx
parent33c5c80fa5d233a981186f7594d11a615a68497c (diff)
downloadmaster-187ad058-1fdbb4fcbd7ff57323ca65daaddb22d242d8bf01.tar.gz
master-187ad058-1fdbb4fcbd7ff57323ca65daaddb22d242d8bf01.tar.bz2
master-187ad058-1fdbb4fcbd7ff57323ca65daaddb22d242d8bf01.zip
ar71xx: fix a compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29110 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/prom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
index c40dae319a..293f9b25eb 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
@@ -33,13 +33,13 @@ static inline int is_valid_ram_addr(void *addr)
return 0;
}
+static char ar71xx_cmdline_buf[COMMAND_LINE_SIZE] __initdata;
static void __init ar71xx_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(ar71xx_cmdline_buf, sizeof(ar71xx_cmdline_buf),
+ " %s=%s", name, value);
+ strlcat(arcs_cmdline, ar71xx_cmdline_buf, sizeof(arcs_cmdline));
}
static const char * __init ar71xx_prom_find_env(char **envp, const char *name)