Changeset 15401


Ignore:
Timestamp:
2009-04-25T09:39:06+02:00 (9 years ago)
Author:
florian
Message:

merge -r15319 to 8.09 (#5005)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/package/switch/src/switch-robo.c

    r15291 r15401  
    7070 
    7171extern char *nvram_get(const char *name); 
     72#define getvar(str) (nvram_get(str)?:"") 
    7273 
    7374/* Data structure for a Roboswitch device. */ 
     
    275276 
    276277        /* WAN port LED, except for Netgear WGT634U */ 
    277         if (strcmp(nvram_get("nvram_type"), "cfe")) 
     278        if (strcmp(getvar("nvram_type"), "cfe") != 0) 
    278279                robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F); 
    279280 
Note: See TracChangeset for help on using the changeset viewer.