summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
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/nfsclient
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/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index cf63c5e..0c002d2 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -485,7 +485,7 @@ nfs_mountroot(struct mount *mp)
if (error)
panic("nfs_mountroot: SIOCAIFADDR: %d", error);
- if ((cp = getenv("boot.netif.mtu")) != NULL) {
+ if ((cp = kern_getenv("boot.netif.mtu")) != NULL) {
ir.ifr_mtu = strtol(cp, NULL, 10);
bcopy(nd->myif.ifra_name, ir.ifr_name, IFNAMSIZ);
freeenv(cp);
OpenPOWER on IntegriCloud