summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-05-02 17:38:08 +0000
committerimp <imp@FreeBSD.org>2003-05-02 17:38:08 +0000
commit0016700b2e6b602be7a72e584a61021cdfb76152 (patch)
tree7de79bbc75c79f3cee529ba38b1496c5726ee1ca /sbin/devd
parentffe5115e135fdf8626e20587301feecc12a5586d (diff)
downloadFreeBSD-src-0016700b2e6b602be7a72e584a61021cdfb76152.zip
FreeBSD-src-0016700b2e6b602be7a72e584a61021cdfb76152.tar.gz
sysctlbyname takes a size_t as its 5th argument, not a pointer.
However, since NULL was used, and this is C++, this error went undetected until g++ 3.3 somehow managed to whine about it. Reported by: obrien
Diffstat (limited to 'sbin/devd')
-rw-r--r--sbin/devd/devd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index 2265604..2fa9132 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -708,7 +708,7 @@ check_devd_enabled()
size_t len;
len = sizeof(val);
- if (sysctlbyname(SYSCTL, &val, &len, NULL, NULL) != 0)
+ if (sysctlbyname(SYSCTL, &val, &len, NULL, 0) != 0)
errx(1, "devctl sysctl missing from kernel!");
if (val) {
warnx("Setting " SYSCTL " to 0");
OpenPOWER on IntegriCloud