From e88bd26b3f101e3aad82304315f731daa60cc6de Mon Sep 17 00:00:00 2001 From: davide Date: Thu, 16 Oct 2014 18:04:43 +0000 Subject: 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 --- sys/dev/hatm/if_hatm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/hatm') diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c index c022724..0be8a3d 100644 --- a/sys/dev/hatm/if_hatm.c +++ b/sys/dev/hatm/if_hatm.c @@ -1319,7 +1319,7 @@ kenv_getuint(struct hatm_softc *sc, const char *var, snprintf(full, sizeof(full), "hw.%s.%s", device_get_nameunit(sc->dev), var); - if ((val = getenv(full)) == NULL) + if ((val = kern_getenv(full)) == NULL) return (0); u = strtoul(val, &end, 0); if (end == val || *end != '\0') { -- cgit v1.1