diff options
author | imp <imp@FreeBSD.org> | 2002-08-21 15:15:15 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-08-21 15:15:15 +0000 |
commit | 9a400152f81cc23f170d7264e19f34277c016ff6 (patch) | |
tree | d080fd2c8b4708731fe5f346d71d5f8ca8a85e0d | |
parent | 842f45255dfcc6d4c971f272fa9f182290a1ec4e (diff) | |
download | FreeBSD-src-9a400152f81cc23f170d7264e19f34277c016ff6.zip FreeBSD-src-9a400152f81cc23f170d7264e19f34277c016ff6.tar.gz |
Don't use NULL where you really mean 0 to sysctlbyname.
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 2 |
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; |