diff options
Diffstat (limited to 'lib/libutil/getrawpartition.c')
-rw-r--r-- | lib/libutil/getrawpartition.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/getrawpartition.c b/lib/libutil/getrawpartition.c index 10324472bd2..bc7fa06d5f1 100644 --- a/lib/libutil/getrawpartition.c +++ b/lib/libutil/getrawpartition.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getrawpartition.c,v 1.9 2016/08/27 03:54:20 guenther Exp $ */ +/* $OpenBSD: getrawpartition.c,v 1.10 2019/06/28 13:32:43 deraadt Exp $ */ /* $NetBSD: getrawpartition.c,v 1.1 1996/05/16 07:03:33 thorpej Exp $ */ /*- @@ -45,7 +45,7 @@ getrawpartition(void) mib[0] = CTL_KERN; mib[1] = KERN_RAWPARTITION; varlen = sizeof(rawpart); - if (sysctl(mib, 2, &rawpart, &varlen, NULL, (size_t)0) < 0) + if (sysctl(mib, 2, &rawpart, &varlen, NULL, (size_t)0) == -1) return (-1); return (rawpart); |