diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-05-02 10:01:09 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-05-02 10:01:09 +0000 |
commit | 9051239daf54c1cdbec6b9846dc1c6c285407aed (patch) | |
tree | 03c03591748bcc89ba37a64e7373e6159741a623 | |
parent | 26f40c4bd42be0a647da3645b6fdae4a852b9f73 (diff) | |
download | upstream-9051239daf54c1cdbec6b9846dc1c6c285407aed.tar.gz upstream-9051239daf54c1cdbec6b9846dc1c6c285407aed.tar.bz2 upstream-9051239daf54c1cdbec6b9846dc1c6c285407aed.zip |
prevent kmod-switch from accessing nvram on brcm63xx (#5035)
SVN-Revision: 15555
-rw-r--r-- | package/switch/src/switch-robo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index 21343edf0a..95cb3e23f7 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -68,9 +68,13 @@ #define bool int #endif - +/* Only available on brcm-2.4/brcm47xx */ +#ifdef BROADCOM extern char *nvram_get(const char *name); #define getvar(str) (nvram_get(str)?:"") +#else +#define getvar(str) NULL +#endif /* Data structure for a Roboswitch device. */ struct robo_switch { |