diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 00:57:57 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 00:57:57 +0000 |
commit | 975fba8a24263006afbbb4e38dd6bf515bdf4b43 (patch) | |
tree | da30cbbe5e5f3c775029e38108f63aa8b8cd17b7 /sys/miscfs | |
parent | 4cc7d69521756e89ce3e5ea28211fda13fc4c9ff (diff) | |
download | FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.zip FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 5 | ||||
-rw-r--r-- | sys/miscfs/nullfs/null_vnops.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index ca25440..6c9cfc0 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 514ba82..db5c341 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]; |