aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/nfsiod
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2002-08-11 11:32:02 +0000
committerMaxime Henrion <mux@FreeBSD.org>2002-08-11 11:32:02 +0000
commit3dc4256892180daf207eaf36adad6f86e26ccc56 (patch)
tree75bb248fe568b2ff3b03d52ae15ae2a82c7185d8 /sbin/nfsiod
parentef3a89cfe8f3e1f85faaafe2c81bdd1e47e4ce5f (diff)
downloadsrc-3dc4256892180daf207eaf36adad6f86e26ccc56.tar.gz
src-3dc4256892180daf207eaf36adad6f86e26ccc56.zip
The kldload() system call doesn't return 0 when it succeeded,
so compare the return value against -1 to see if it failed instead of simply doing if (kldload("nfs")).
Notes
Notes: svn path=/head/; revision=101676
Diffstat (limited to 'sbin/nfsiod')
-rw-r--r--sbin/nfsiod/nfsiod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c
index 15e5f762e52a..eb2bca79efc1 100644
--- a/sbin/nfsiod/nfsiod.c
+++ b/sbin/nfsiod/nfsiod.c
@@ -81,7 +81,7 @@ main(int argc, char *argv[])
error = getvfsbyname("nfs", &vfc);
if (error) {
- if (kldload("nfs"))
+ if (kldload("nfs") == -1)
err(1, "kldload(nfs)");
error = getvfsbyname("nfs", &vfc);
}