summaryrefslogtreecommitdiffstats
path: root/sbin/gbde
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-10 14:32:28 +0000
committerphk <phk@FreeBSD.org>2003-10-10 14:32:28 +0000
commit1665650eeb2c5ddd11040ffd4cea304eaaa07791 (patch)
treeaa7c3a0dc53efaa4597e3a058efbbba5405ad53e /sbin/gbde
parentfb970e56ae98b9f5d2b177f9fd119800a87559b5 (diff)
downloadFreeBSD-src-1665650eeb2c5ddd11040ffd4cea304eaaa07791.zip
FreeBSD-src-1665650eeb2c5ddd11040ffd4cea304eaaa07791.tar.gz
I think it is more correct to use modfind() than kldfind() here.
Diffstat (limited to 'sbin/gbde')
-rw-r--r--sbin/gbde/gbde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c
index c0786a7..7115b37 100644
--- a/sbin/gbde/gbde.c
+++ b/sbin/gbde/gbde.c
@@ -672,9 +672,9 @@ main(int argc, char **argv)
if (argc < 3)
usage("Too few arguments\n");
- if ((i = kldfind(GBDEMOD)) < 0) {
+ if ((i = modfind("g_bde")) < 0) {
/* need to load the gbde module */
- if (kldload(GBDEMOD) < 0 || kldfind(GBDEMOD) < 0) {
+ if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0) {
usage(GBDEMOD ": Kernel module not available");
}
}
OpenPOWER on IntegriCloud