diff options
author | avg <avg@FreeBSD.org> | 2011-12-17 15:26:34 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2011-12-17 15:26:34 +0000 |
commit | abb1713421269460e80f10ebf41aa50803e50349 (patch) | |
tree | ce4922a88e0b934a7c0e69b20f864fa538231387 /sys/geom | |
parent | 53f09b7dafb734fd1c82af5d5e7415c7380c60db (diff) | |
download | FreeBSD-src-abb1713421269460e80f10ebf41aa50803e50349.zip FreeBSD-src-abb1713421269460e80f10ebf41aa50803e50349.tar.gz |
replace uses of libkern gets with cngets
MFC after: 2 months
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/eli/g_eli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 874aa26..72f93f4 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/cons.h> #include <sys/kernel.h> #include <sys/linker.h> #include <sys/module.h> @@ -1085,7 +1086,7 @@ g_eli_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) /* Ask for the passphrase if defined. */ if (md.md_iterations >= 0) { printf("Enter passphrase for %s: ", pp->name); - gets(passphrase, sizeof(passphrase), + cngets(passphrase, sizeof(passphrase), g_eli_visible_passphrase); } |