summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-01 08:07:14 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-01 08:07:14 +0000
commitf5453d38ba59699d5d7a2b1cc5c47d6c73b5d0b4 (patch)
treee872f6a3b7b2f9afa7ae181642492377f631e3f2 /sys
parent6bca9dd927b141effd87900940cd8b5fc36cb942 (diff)
GCC 2.8 -Wall
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ext2fs/ext2fs_readwrite.c6
-rw-r--r--sys/ufs/ffs/ffs_alloc.c5
-rw-r--r--sys/ufs/ufs/ufs_readwrite.c6
3 files changed, 9 insertions, 8 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_readwrite.c b/sys/ufs/ext2fs/ext2fs_readwrite.c
index dc9325b5f6d..d586f69a3bd 100644
--- a/sys/ufs/ext2fs/ext2fs_readwrite.c
+++ b/sys/ufs/ext2fs/ext2fs_readwrite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_readwrite.c,v 1.3 1997/06/12 21:09:34 downsj Exp $ */
+/* $OpenBSD: ext2fs_readwrite.c,v 1.4 1998/03/01 08:07:09 niklas Exp $ */
/* $NetBSD: ext2fs_readwrite.c,v 1.1 1997/06/11 09:34:01 bouyer Exp $ */
/*-
@@ -268,12 +268,12 @@ ext2fs_write(v)
uiomove((char *)bp->b_data + blkoffset, (int)xfersize, uio);
if (ioflag & IO_SYNC)
(void)bwrite(bp);
- else if (xfersize + blkoffset == fs->e2fs_bsize)
+ else if (xfersize + blkoffset == fs->e2fs_bsize) {
if (doclusterwrite)
cluster_write(bp, ip->i_e2fs_size);
else
bawrite(bp);
- else
+ } else
bdwrite(bp);
if (error || xfersize == 0)
break;
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 8c7f8d7139a..533476f5d3b 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_alloc.c,v 1.10 1997/11/06 05:59:17 csapuntz Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.11 1998/03/01 08:07:11 niklas Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
@@ -492,11 +492,12 @@ ffs_reallocblks(v)
VOP_UPDATE(vp, &ts, &ts, 1);
}
}
- if (ssize < len)
+ if (ssize < len) {
if (doasyncfree)
bdwrite(ebp);
else
bwrite(ebp);
+ }
/*
* Last, free the old blocks and assign the new blocks to the buffers.
*/
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c
index bfa9c2b21b1..4cecf167d60 100644
--- a/sys/ufs/ufs/ufs_readwrite.c
+++ b/sys/ufs/ufs/ufs_readwrite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_readwrite.c,v 1.12 1997/11/06 05:59:28 csapuntz Exp $ */
+/* $OpenBSD: ufs_readwrite.c,v 1.13 1998/03/01 08:07:13 niklas Exp $ */
/* $NetBSD: ufs_readwrite.c,v 1.9 1996/05/11 18:27:57 mycroft Exp $ */
/*-
@@ -267,12 +267,12 @@ WRITE(v)
#else
if (ioflag & IO_SYNC)
(void)bwrite(bp);
- else if (xfersize + blkoffset == fs->fs_bsize)
+ else if (xfersize + blkoffset == fs->fs_bsize) {
if (doclusterwrite)
cluster_write(bp, ip->i_ffs_size);
else
bawrite(bp);
- else
+ } else
bdwrite(bp);
#endif
if (error || xfersize == 0)