aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
committerDavide Italiano <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
commit2be111bf7dda0f18d645f0e201b6555bbe3da1ac (patch)
treef232fa8c3b1009450da57b71fb0323893520f81c /sys/sparc64
parent148bdd15d5cb3873e94e61b2678ce2ad208e3a93 (diff)
downloadsrc-2be111bf7dda0f18d645f0e201b6555bbe3da1ac.tar.gz
src-2be111bf7dda0f18d645f0e201b6555bbe3da1ac.zip
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
Notes
Notes: svn path=/head/; revision=273174
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index 0ee6de3a5131..57d7a66169f9 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -511,7 +511,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec)
* Initialize tunables.
*/
init_param2(physmem);
- env = getenv("kernelname");
+ env = kern_getenv("kernelname");
if (env != NULL) {
strlcpy(kernelname, env, sizeof(kernelname));
freeenv(env);