Changeset 30424


Ignore:
Timestamp:
2012-02-10T18:38:46+01:00 (4 years ago)
Author:
juhosg
Message:

ramips: fix compiler warning in prom.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/ralink/common/prom.c

    r21606 r30424  
    4444} 
    4545 
     46static char ramips_cmdline_buf[COMMAND_LINE_SIZE] __initdata; 
    4647static void __init prom_append_cmdline(const char *name, 
    4748                                       const char *value) 
    4849{ 
    49         char buf[COMMAND_LINE_SIZE]; 
    50  
    51         snprintf(buf, sizeof(buf), " %s=%s", name, value); 
    52         strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline)); 
     50        snprintf(ramips_cmdline_buf, sizeof(ramips_cmdline_buf), 
     51                 " %s=%s", name, value); 
     52        strlcat(arcs_cmdline, ramips_cmdline_buf, sizeof(arcs_cmdline)); 
    5353} 
    5454 
Note: See TracChangeset for help on using the changeset viewer.