mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 02:12:52 +02:00
ar71xx: fix a compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29110 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e8a5cbc660
commit
b9c4475b88
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user