diff options
author | phk <phk@FreeBSD.org> | 2003-10-10 14:32:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-10 14:32:28 +0000 |
commit | 1665650eeb2c5ddd11040ffd4cea304eaaa07791 (patch) | |
tree | aa7c3a0dc53efaa4597e3a058efbbba5405ad53e /sbin/gbde | |
parent | fb970e56ae98b9f5d2b177f9fd119800a87559b5 (diff) | |
download | FreeBSD-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.c | 4 |
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"); } } |