summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorsf <sf@openbsd.org>2017-08-13 23:36:27 +0000
committersf <sf@openbsd.org>2017-08-13 23:36:27 +0000
commitcc40aa10d7b01b3c845d3fdd439411c7f2315278 (patch)
tree5c224bcaf56729d24ad52b76e3cec457d5c9342d /sys/msdosfs
parentFix rotation in combination wth vcons support by calling (diff)
downloadwireguard-openbsd-cc40aa10d7b01b3c845d3fdd439411c7f2315278.tar.xz
wireguard-openbsd-cc40aa10d7b01b3c845d3fdd439411c7f2315278.zip
minor msdosfs tweaks
* add to comments for pcbmap() * remove useless ";" ok tb@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_fat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index 3a3d4de0761..5dcee74223a 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_fat.c,v 1.28 2015/10/23 17:21:34 krw Exp $ */
+/* $OpenBSD: msdosfs_fat.c,v 1.29 2017/08/13 23:36:27 sf Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */
/*-
@@ -123,6 +123,8 @@ fatblock(struct msdosfsmount *pmp, uint32_t ofs, uint32_t *bnp, uint32_t *sizep,
* If this pointer is null then don't return this quantity.
* cnp - address of where to place the file system relative cluster number.
* If this pointer is null then don't return this quantity.
+ * sp - address of where to place the block size for the file/dir
+ * If this pointer is null then don't return this quantity.
*
* NOTE: Either bnp or cnp must be non-null.
* This function has one side effect. If the requested file relative cluster
@@ -258,7 +260,7 @@ pcbmap(struct denode *dep, uint32_t findcn, daddr_t *bnp, uint32_t *cnp,
return (0);
}
-hiteof:;
+hiteof:
if (cnp)
*cnp = i;
if (bp)