Changeset 29110


Ignore:
Timestamp:
2011-11-14T14:07:47+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: fix a compiler warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c

    r23978 r29110  
    3434} 
    3535 
     36static char ar71xx_cmdline_buf[COMMAND_LINE_SIZE] __initdata; 
    3637static void __init ar71xx_prom_append_cmdline(const char *name, 
    3738                                              const char *value) 
    3839{ 
    39         char buf[COMMAND_LINE_SIZE]; 
    40  
    41         snprintf(buf, sizeof(buf), " %s=%s", name, value); 
    42         strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline)); 
     40        snprintf(ar71xx_cmdline_buf, sizeof(ar71xx_cmdline_buf), 
     41                 " %s=%s", name, value); 
     42        strlcat(arcs_cmdline, ar71xx_cmdline_buf, sizeof(arcs_cmdline)); 
    4343} 
    4444 
Note: See TracChangeset for help on using the changeset viewer.