diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-27 07:13:32 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-27 07:13:32 +0000 |
commit | 16240c4ec5e2a3be1a664e6d9485e058fd0b6589 (patch) | |
tree | 1a7e09d5b03c266802292041c2882ddd89e0855d /sys/ufs/lfs/lfs_subr.c | |
parent | e4dbdd3a19a2f75d54142f13bcadfed0617a7d12 (diff) |
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/ufs/lfs/lfs_subr.c')
-rw-r--r-- | sys/ufs/lfs/lfs_subr.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/ufs/lfs/lfs_subr.c b/sys/ufs/lfs/lfs_subr.c index 1f5784a3bfd..613ea339eaf 100644 --- a/sys/ufs/lfs/lfs_subr.c +++ b/sys/ufs/lfs/lfs_subr.c @@ -1,4 +1,5 @@ -/* $NetBSD: lfs_subr.c,v 1.2 1994/06/29 06:47:00 cgd Exp $ */ +/* $OpenBSD: lfs_subr.c,v 1.2 1996/02/27 07:13:27 niklas Exp $ */ +/* $NetBSD: lfs_subr.c,v 1.3 1996/02/09 22:28:55 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -36,6 +37,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/namei.h> #include <sys/vnode.h> #include <sys/buf.h> @@ -54,14 +56,15 @@ * remaining space in the directory. */ int -lfs_blkatoff(ap) +lfs_blkatoff(v) + void *v; +{ struct vop_blkatoff_args /* { struct vnode *a_vp; off_t a_offset; char **a_res; struct buf **a_bpp; - } */ *ap; -{ + } */ *ap = v; register struct lfs *fs; struct inode *ip; struct buf *bp; @@ -74,7 +77,7 @@ lfs_blkatoff(ap) bsize = blksize(fs); *ap->a_bpp = NULL; - if (error = bread(ap->a_vp, lbn, bsize, NOCRED, &bp)) { + if ((error = bread(ap->a_vp, lbn, bsize, NOCRED, &bp)) != 0) { brelse(bp); return (error); } |