aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldconfig
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2004-03-05 08:10:19 +0000
committerMark Murray <markm@FreeBSD.org>2004-03-05 08:10:19 +0000
commit16fc3635f7aec3852abfc6dd77f89baef91f22fa (patch)
tree524ae0ef30bcdfacb05b3c2b01e1c48e80d93e3b /sbin/kldconfig
parent5af2e7de06321c8f6aaa876fa79bf08870e8911c (diff)
downloadsrc-16fc3635f7aec3852abfc6dd77f89baef91f22fa.tar.gz
src-16fc3635f7aec3852abfc6dd77f89baef91f22fa.zip
Notes
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r--sbin/kldconfig/kldconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c
index 0f7c72100e18..1f53d7cd0b2b 100644
--- a/sbin/kldconfig/kldconfig.c
+++ b/sbin/kldconfig/kldconfig.c
@@ -113,14 +113,14 @@ getpath(void)
if (miblen == 0)
getmib();
- if (sysctl(mib, miblen, NULL, &sz, NULL, NULL) == -1)
+ if (sysctl(mib, miblen, NULL, &sz, NULL, 0) == -1)
err(1, "getting path: sysctl(%s) - size only", pathctl);
if ((path = malloc(sz + 1)) == NULL) {
errno = ENOMEM;
err(1, "allocating %lu bytes for the path",
(unsigned long)sz+1);
}
- if (sysctl(mib, miblen, path, &sz, NULL, NULL) == -1)
+ if (sysctl(mib, miblen, path, &sz, NULL, 0) == -1)
err(1, "getting path: sysctl(%s)", pathctl);
modpath = path;
}