aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>1998-02-23 14:57:50 +0000
committerKATO Takenori <kato@FreeBSD.org>1998-02-23 14:57:50 +0000
commitefa0ac5b6f802cdd688f0a8d76d77f87656ce4cc (patch)
treea5033da880abfa25a2e4e3a374d217625e799ed6 /sys
parent9f3962f9bbefc68a7e4e4c5795e76e83898f1cf5 (diff)
downloadsrc-efa0ac5b6f802cdd688f0a8d76d77f87656ce4cc.tar.gz
src-efa0ac5b6f802cdd688f0a8d76d77f87656ce4cc.zip
Fix signatures of NEC's DOS formats.
Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
Notes
Notes: svn path=/head/; revision=33765
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c18
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c18
2 files changed, 18 insertions, 18 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 30ad072ed9d3..ea7875ceee09 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.25 1998/02/22 15:09:46 ache Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.26 1998/02/23 09:59:08 ache Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -446,14 +446,14 @@ mountmsdosfs(devvp, mp, p, argp)
if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) {
#endif
#ifdef PC98
- if (bsp->bs50.bsBootSectSig0 != BOOTSIG0
- || bsp->bs50.bsBootSectSig1 != BOOTSIG1
- && bsp->bs50.bsBootSectSig0 != 0 /* PC98 DOS 3.3x */
- || bsp->bs50.bsBootSectSig1 != 0
- && bsp->bs50.bsBootSectSig0 != 0x90 /* PC98 DOS 5.0 */
- || bsp->bs50.bsBootSectSig1 != 0x3d
- && bsp->bs50.bsBootSectSig0 != 0x46 /* PC98 DOS 3.3B */
- || bsp->bs50.bsBootSectSig1 != 0xfa) {
+ if ((bsp->bs50.bsBootSectSig0 != BOOTSIG0
+ || bsp->bs50.bsBootSectSig1 != BOOTSIG1)
+ && (bsp->bs50.bsBootSectSig0 != 0 /* PC98 DOS 3.3x */
+ || bsp->bs50.bsBootSectSig1 != 0)
+ && (bsp->bs50.bsBootSectSig0 != 0x90 /* PC98 DOS 5.0 */
+ || bsp->bs50.bsBootSectSig1 != 0x3d)
+ && (bsp->bs50.bsBootSectSig0 != 0x46 /* PC98 DOS 3.3B */
+ || bsp->bs50.bsBootSectSig1 != 0xfa)) {
#else
if (bsp->bs50.bsBootSectSig0 != BOOTSIG0
|| bsp->bs50.bsBootSectSig1 != BOOTSIG1) {
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 30ad072ed9d3..ea7875ceee09 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.25 1998/02/22 15:09:46 ache Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.26 1998/02/23 09:59:08 ache Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -446,14 +446,14 @@ mountmsdosfs(devvp, mp, p, argp)
if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) {
#endif
#ifdef PC98
- if (bsp->bs50.bsBootSectSig0 != BOOTSIG0
- || bsp->bs50.bsBootSectSig1 != BOOTSIG1
- && bsp->bs50.bsBootSectSig0 != 0 /* PC98 DOS 3.3x */
- || bsp->bs50.bsBootSectSig1 != 0
- && bsp->bs50.bsBootSectSig0 != 0x90 /* PC98 DOS 5.0 */
- || bsp->bs50.bsBootSectSig1 != 0x3d
- && bsp->bs50.bsBootSectSig0 != 0x46 /* PC98 DOS 3.3B */
- || bsp->bs50.bsBootSectSig1 != 0xfa) {
+ if ((bsp->bs50.bsBootSectSig0 != BOOTSIG0
+ || bsp->bs50.bsBootSectSig1 != BOOTSIG1)
+ && (bsp->bs50.bsBootSectSig0 != 0 /* PC98 DOS 3.3x */
+ || bsp->bs50.bsBootSectSig1 != 0)
+ && (bsp->bs50.bsBootSectSig0 != 0x90 /* PC98 DOS 5.0 */
+ || bsp->bs50.bsBootSectSig1 != 0x3d)
+ && (bsp->bs50.bsBootSectSig0 != 0x46 /* PC98 DOS 3.3B */
+ || bsp->bs50.bsBootSectSig1 != 0xfa)) {
#else
if (bsp->bs50.bsBootSectSig0 != BOOTSIG0
|| bsp->bs50.bsBootSectSig1 != BOOTSIG1) {