diff options
author | davide <davide@FreeBSD.org> | 2014-10-16 18:04:43 +0000 |
---|---|---|
committer | davide <davide@FreeBSD.org> | 2014-10-16 18:04:43 +0000 |
commit | e88bd26b3f101e3aad82304315f731daa60cc6de (patch) | |
tree | f232fa8c3b1009450da57b71fb0323893520f81c /sys/amd64/vmm | |
parent | 8afb9f2a447867f4564d2c596eab8b20d9b2fc54 (diff) | |
download | FreeBSD-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/amd64/vmm')
-rw-r--r-- | sys/amd64/vmm/vmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 8f987b7..dd0829c 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -1934,7 +1934,7 @@ vmm_is_pptdev(int bus, int slot, int func) /* set pptdevs="1/2/3 4/5/6 7/8/9 10/11/12" */ found = 0; for (i = 0; names[i] != NULL && !found; i++) { - cp = val = getenv(names[i]); + cp = val = kern_getenv(names[i]); while (cp != NULL && *cp != '\0') { if ((cp2 = strchr(cp, ' ')) != NULL) *cp2 = '\0'; |