aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
commit8aef171243894d9b06e5ac740bfa5e8686fc4c1a (patch)
treef908d89518cbc0f801b11f1750100b49454326a1 /sys/miscfs
parent7191deb01ed2d308d347683ba7c8e5ea66bab570 (diff)
Notes
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c5
-rw-r--r--sys/miscfs/nullfs/null_vnops.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index ca25440e3461b..6c9cfc0941c19 100644
--- a/sys/miscfs/devfs/devfs_vnops.c
+++ b/sys/miscfs/devfs/devfs_vnops.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: devfs_vnops.c,v 1.67 1999/01/27 22:42:05 dillon Exp $
+ * $Id: devfs_vnops.c,v 1.68 1999/01/27 23:49:45 dillon Exp $
*/
@@ -1724,6 +1724,9 @@ devfs_strategy(struct vop_strategy_args *ap)
case VBLK:
(*dnp->by.Bdev.bdevsw->d_strategy)(bp);
break;
+ default:
+ /* XXX set error code? */
+ break;
}
return (0);
}
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c
index 514ba82c6d044..db5c341b053a8 100644
--- a/sys/miscfs/nullfs/null_vnops.c
+++ b/sys/miscfs/nullfs/null_vnops.c
@@ -37,11 +37,11 @@
*
* Ancestors:
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
- * $Id: null_vnops.c,v 1.30 1998/12/07 21:58:32 archie Exp $
+ * $Id: null_vnops.c,v 1.31 1999/01/27 22:42:06 dillon Exp $
* ...and...
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
*
- * $Id: null_vnops.c,v 1.30 1998/12/07 21:58:32 archie Exp $
+ * $Id: null_vnops.c,v 1.31 1999/01/27 22:42:06 dillon Exp $
*/
/*
@@ -452,7 +452,7 @@ null_getattr(ap)
{
int error;
- if (error = null_bypass((struct vop_generic_args *)ap))
+ if ((error = null_bypass((struct vop_generic_args *)ap)) != 0)
return (error);
/* Requires that arguments be restored. */
ap->a_vap->va_fsid = ap->a_vp->v_mount->mnt_stat.f_fsid.val[0];