summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-08-21 15:15:15 +0000
committerimp <imp@FreeBSD.org>2002-08-21 15:15:15 +0000
commit9a400152f81cc23f170d7264e19f34277c016ff6 (patch)
treed080fd2c8b4708731fe5f346d71d5f8ca8a85e0d /sbin
parent842f45255dfcc6d4c971f272fa9f182290a1ec4e (diff)
downloadFreeBSD-src-9a400152f81cc23f170d7264e19f34277c016ff6.zip
FreeBSD-src-9a400152f81cc23f170d7264e19f34277c016ff6.tar.gz
Don't use NULL where you really mean 0 to sysctlbyname.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mdconfig/mdconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index a730332..a1c125ec 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -213,7 +213,7 @@ list(const int fd)
err(1, "sysctlbyname: kern.disks");
if ( (disklist = malloc(dll)) == NULL)
err(1, "malloc");
- if (sysctlbyname("kern.disks", disklist, &dll, NULL, NULL) == -1)
+ if (sysctlbyname("kern.disks", disklist, &dll, NULL, 0) == -1)
err(1, "sysctlbyname: kern.disks");
for (p = disklist;
OpenPOWER on IntegriCloud