diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-31 16:05:51 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-31 16:05:51 +0000 |
commit | 30ebea4b6a1a94853d75859fe42e569cd1d06289 (patch) | |
tree | a06a609229b0583c55fb62d004f46be15e8cc252 /sys/arch/i386 | |
parent | 6c230ec664682602e08cdef80d616804fcc4bd0c (diff) |
Standardize on -1 as the error return value for
bounds_check_with_label. All callers check for <= 0, so no functional
change.
Feedback from miod@.
ok weingart@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 7cb6237ba9a..f16d43931e4 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.73 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.74 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -515,5 +515,5 @@ bounds_check_with_label(struct buf *bp, struct disklabel *lp, bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } |