summaryrefslogtreecommitdiffstats
path: root/sys/dev/nfe/if_nfe.c
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/nfe/if_nfe.c
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/nfe/if_nfe.c')
-rw-r--r--sys/dev/nfe/if_nfe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c
index 4c7ccb1..e9952a0 100644
--- a/sys/dev/nfe/if_nfe.c
+++ b/sys/dev/nfe/if_nfe.c
@@ -345,8 +345,8 @@ nfe_detect_msik9(struct nfe_softc *sc)
int found;
found = 0;
- m = getenv("smbios.planar.maker");
- p = getenv("smbios.planar.product");
+ m = kern_getenv("smbios.planar.maker");
+ p = kern_getenv("smbios.planar.product");
if (m != NULL && p != NULL) {
if (strcmp(m, maker) == 0 && strcmp(p, product) == 0)
found = 1;
@@ -839,8 +839,8 @@ nfe_can_use_msix(struct nfe_softc *sc)
* Search base board manufacturer and product name table
* to see this system has a known MSI/MSI-X issue.
*/
- maker = getenv("smbios.planar.maker");
- product = getenv("smbios.planar.product");
+ maker = kern_getenv("smbios.planar.maker");
+ product = kern_getenv("smbios.planar.product");
use_msix = 1;
if (maker != NULL && product != NULL) {
count = sizeof(msix_blacklists) / sizeof(msix_blacklists[0]);
OpenPOWER on IntegriCloud