diff options
author | Davide Italiano <davide@FreeBSD.org> | 2014-10-16 18:04:43 +0000 |
---|---|---|
committer | Davide Italiano <davide@FreeBSD.org> | 2014-10-16 18:04:43 +0000 |
commit | 2be111bf7dda0f18d645f0e201b6555bbe3da1ac (patch) | |
tree | f232fa8c3b1009450da57b71fb0323893520f81c /sys/dev/patm/if_patm_attach.c | |
parent | 148bdd15d5cb3873e94e61b2678ce2ad208e3a93 (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/patm/if_patm_attach.c')
-rw-r--r-- | sys/dev/patm/if_patm_attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/patm/if_patm_attach.c b/sys/dev/patm/if_patm_attach.c index d93fd008162e..f4b8c4e9f51d 100644 --- a/sys/dev/patm/if_patm_attach.c +++ b/sys/dev/patm/if_patm_attach.c @@ -579,7 +579,7 @@ patm_env_getuint(struct patm_softc *sc, u_int *var, const char *name) snprintf(full, sizeof(full), "hw.%s.%s", device_get_nameunit(sc->dev), name); - if ((val = getenv(full)) != NULL) { + if ((val = kern_getenv(full)) != NULL) { u = strtoul(val, &end, 0); if (end > val && *end == '\0') { if (bootverbose) |