summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-10-10 00:34:50 +0000
committerbluhm <bluhm@openbsd.org>2016-10-10 00:34:50 +0000
commitba4520cc08535ac65ee86cb0854c5ac4a5788ad1 (patch)
tree8fe2e8d85910c016865aeb15fbfab31387add4ed /sys/msdosfs
parentcopy the offset of data inside mbufs in m_copym(). (diff)
downloadwireguard-openbsd-ba4520cc08535ac65ee86cb0854c5ac4a5788ad1.tar.xz
wireguard-openbsd-ba4520cc08535ac65ee86cb0854c5ac4a5788ad1.zip
Rename BIOS parameter block field from bsPBP to bsBPB. This typo
has been fixed in FreeBSD in 2002. No binary change. From Alexander von Gernler; OK krw@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/bootsect.h4
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/msdosfs/bootsect.h b/sys/msdosfs/bootsect.h
index f009b356407..88ef89a25a7 100644
--- a/sys/msdosfs/bootsect.h
+++ b/sys/msdosfs/bootsect.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bootsect.h,v 1.6 2015/10/23 10:45:31 krw Exp $ */
+/* $OpenBSD: bootsect.h,v 1.7 2016/10/10 00:34:50 bluhm Exp $ */
/* $NetBSD: bootsect.h,v 1.8 1997/10/17 11:23:29 ws Exp $ */
/*
@@ -59,7 +59,7 @@ struct bootsector50 {
struct bootsector710 {
u_int8_t bsJump[3]; /* jump inst E9xxxx or EBxx90 */
int8_t bsOEMName[8]; /* OEM name and version */
- int8_t bsPBP[53]; /* BIOS parameter block */
+ int8_t bsBPB[53]; /* BIOS parameter block */
int8_t bsExt[26]; /* Bootsector Extension */
int8_t bsBootCode[418]; /* pad so structure is 512b */
u_int8_t bsBootSectSig2; /* 2 & 3 are only defined for FAT32? */
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 023ab7b6653..e13b0b1ea0b 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vfsops.c,v 1.82 2016/10/09 23:49:54 bluhm Exp $ */
+/* $OpenBSD: msdosfs_vfsops.c,v 1.83 2016/10/10 00:34:50 bluhm Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */
/*-
@@ -299,7 +299,7 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p,
bsp = (union bootsector *)bp->b_data;
b33 = (struct byte_bpb33 *)bsp->bs33.bsBPB;
b50 = (struct byte_bpb50 *)bsp->bs50.bsBPB;
- b710 = (struct byte_bpb710 *)bsp->bs710.bsPBP;
+ b710 = (struct byte_bpb710 *)bsp->bs710.bsBPB;
pmp = malloc(sizeof *pmp, M_MSDOSFSMNT, M_WAITOK | M_ZERO);
pmp->pm_mountp = mp;