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 | |
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')
-rw-r--r-- | sys/arch/alpha/alpha/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/arm/arm/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/aviion/aviion/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/landisk/landisk/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/disksubr.c | 4 | ||||
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/disksubr.c | 4 |
12 files changed, 24 insertions, 24 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index 8fe69125170..297c29235e8 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.69 2007/05/29 06:28:14 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.70 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -586,5 +586,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c index a084c728ef7..41270136799 100644 --- a/sys/arch/amd64/amd64/disksubr.c +++ b/sys/arch/amd64/amd64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.33 2007/05/29 06:28:14 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.34 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); } diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c index bf75cf30c28..063e56629b5 100644 --- a/sys/arch/arm/arm/disksubr.c +++ b/sys/arch/arm/arm/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.28 2007/05/29 06:28:14 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.29 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -499,5 +499,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c index 13cd52806e0..c3d334c1dcd 100644 --- a/sys/arch/aviion/aviion/disksubr.c +++ b/sys/arch/aviion/aviion/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.19 2007/05/29 06:28:14 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.20 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -498,5 +498,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index 7b7991dbe33..73252102375 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.49 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.50 2007/05/31 16:05:50 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -740,5 +740,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/hppa64/hppa64/disksubr.c b/sys/arch/hppa64/hppa64/disksubr.c index 678dfee3469..55c1190e3d2 100644 --- a/sys/arch/hppa64/hppa64/disksubr.c +++ b/sys/arch/hppa64/hppa64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.32 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.33 2007/05/31 16:05:50 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -736,5 +736,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } 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); } diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c index 2ccb0a91e9d..18db52b2f33 100644 --- a/sys/arch/landisk/landisk/disksubr.c +++ b/sys/arch/landisk/landisk/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.16 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.17 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -499,5 +499,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/mac68k/mac68k/disksubr.c b/sys/arch/mac68k/mac68k/disksubr.c index ad775c8b45c..4455c2014c5 100644 --- a/sys/arch/mac68k/mac68k/disksubr.c +++ b/sys/arch/mac68k/mac68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.33 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.34 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.22 1997/11/26 04:18:20 briggs Exp $ */ /* @@ -611,5 +611,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index 34ee90539af..54ac0440990 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.38 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.39 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -601,5 +601,5 @@ bounds_check_with_label(struct buf *bp, struct disklabel *lp, bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/mips64/mips64/disksubr.c b/sys/arch/mips64/mips64/disksubr.c index f191f688e19..c60fe7cdd08 100644 --- a/sys/arch/mips64/mips64/disksubr.c +++ b/sys/arch/mips64/mips64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.38 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.39 2007/05/31 16:05:50 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -686,5 +686,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } diff --git a/sys/arch/mvmeppc/mvmeppc/disksubr.c b/sys/arch/mvmeppc/mvmeppc/disksubr.c index 00d369c3c77..56f00803135 100644 --- a/sys/arch/mvmeppc/mvmeppc/disksubr.c +++ b/sys/arch/mvmeppc/mvmeppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.34 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: disksubr.c,v 1.35 2007/05/31 16:05:50 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -500,5 +500,5 @@ bounds_check_with_label(bp, lp, osdep, wlabel) bad: bp->b_flags |= B_ERROR; done: - return (0); + return (-1); } |