summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authordavide <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
committerdavide <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
commite88bd26b3f101e3aad82304315f731daa60cc6de (patch)
treef232fa8c3b1009450da57b71fb0323893520f81c /sys/dev/mii
parent8afb9f2a447867f4564d2c596eab8b20d9b2fc54 (diff)
downloadFreeBSD-src-e88bd26b3f101e3aad82304315f731daa60cc6de.zip
FreeBSD-src-e88bd26b3f101e3aad82304315f731daa60cc6de.tar.gz
Follow up to r225617. In order to maximize the re-usability of kernel code
in userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv(). This fixes a namespace collision with libc symbols. Submitted by: kmacy Tested by: make universe
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/brgphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index b8ec89c..dba35a0 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -171,7 +171,7 @@ detect_hs21(struct bce_softc *bce_sc)
found = 0;
if (bce_sc->bce_chipid == HS21_BCM_CHIPID) {
- sysenv = getenv("smbios.system.product");
+ sysenv = kern_getenv("smbios.system.product");
if (sysenv != NULL) {
if (strncmp(sysenv, HS21_PRODUCT_ID,
strlen(HS21_PRODUCT_ID)) == 0)
OpenPOWER on IntegriCloud