aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_subr.c
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/dev/uart/uart_subr.c
parent148bdd15d5cb3873e94e61b2678ce2ad208e3a93 (diff)
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/dev/uart/uart_subr.c')
-rw-r--r--sys/dev/uart/uart_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c
index 0277b2137179..d1e408cba692 100644
--- a/sys/dev/uart/uart_subr.c
+++ b/sys/dev/uart/uart_subr.c
@@ -214,9 +214,9 @@ uart_getenv(int devtype, struct uart_devinfo *di, struct uart_class *class)
* port (resp).
*/
if (devtype == UART_DEV_CONSOLE)
- spec = getenv("hw.uart.console");
+ spec = kern_getenv("hw.uart.console");
else if (devtype == UART_DEV_DBGPORT)
- spec = getenv("hw.uart.dbgport");
+ spec = kern_getenv("hw.uart.dbgport");
else
spec = NULL;
if (spec == NULL)