From b6d0381e7e838382ce91839e305c690d32b69fdd Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 7 Aug 2007 03:22:10 +0000 Subject: [PATCH] Fix some style bugs (some whitespace errors only). Approved by: re (kensmith) (blanket) --- sys/fs/msdosfs/denode.h | 8 ++++---- sys/fs/msdosfs/msdosfs_fat.c | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h index 3aac0bce45b1..da9eca29fd68 100644 --- a/sys/fs/msdosfs/denode.h +++ b/sys/fs/msdosfs/denode.h @@ -225,18 +225,18 @@ struct denode { #define DETOV(de) ((de)->de_vnode) #define DETIMES(dep, acc, mod, cre) do { \ - if ((dep)->de_flag & DE_UPDATE) { \ + if ((dep)->de_flag & DE_UPDATE) { \ (dep)->de_flag |= DE_MODIFIED; \ timespec2fattime((mod), 0, &(dep)->de_MDate, \ &(dep)->de_MTime, NULL); \ - (dep)->de_Attributes |= ATTR_ARCHIVE; \ + (dep)->de_Attributes |= ATTR_ARCHIVE; \ } \ if ((dep)->de_pmp->pm_flags & MSDOSFSMNT_NOWIN95) { \ (dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \ break; \ } \ if ((dep)->de_flag & DE_ACCESS) { \ - u_int16_t adate; \ + u_int16_t adate; \ \ timespec2fattime((acc), 0, &adate, NULL, NULL); \ if (adate != (dep)->de_ADate) { \ @@ -247,7 +247,7 @@ struct denode { if ((dep)->de_flag & DE_CREATE) { \ timespec2fattime((cre), 0, &(dep)->de_CDate, \ &(dep)->de_CTime, &(dep)->de_CHun); \ - (dep)->de_flag |= DE_MODIFIED; \ + (dep)->de_flag |= DE_MODIFIED; \ } \ (dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \ } while (0) diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c index 4d629be1e98e..6586710d40d3 100644 --- a/sys/fs/msdosfs/msdosfs_fat.c +++ b/sys/fs/msdosfs/msdosfs_fat.c @@ -114,7 +114,7 @@ fatblock(pmp, ofs, bnp, sizep, bop) *sizep = size; if (bop) *bop = ofs % pmp->pm_fatblocksize; - pm_fatblocksize = pmp->pm_fatblocksize; + pm_fatblocksize = pmp->pm_fatblocksize; } /* @@ -522,7 +522,7 @@ fatentry(function, pmp, cn, oldcontents, newcontents) #ifdef MSDOSFS_DEBUG printf("fatentry(func %d, pmp %p, clust %lu, oldcon %p, newcon %lx)\n", - function, pmp, cn, oldcontents, newcontents); + function, pmp, cn, oldcontents, newcontents); #endif #ifdef DIAGNOSTIC @@ -717,7 +717,7 @@ chainlength(pmp, start, count) break; map = pmp->pm_inusemap[idx]; if (map) { - len += ffs(map) - 1; + len += ffs(map) - 1; break; } len += N_INUSEBITS; @@ -794,12 +794,12 @@ clusteralloc(pmp, start, count, fillwith, retcluster, got) u_int map; #ifdef MSDOSFS_DEBUG - printf("clusteralloc(): find %lu clusters\n",count); + printf("clusteralloc(): find %lu clusters\n", count); #endif if (start) { if ((len = chainlength(pmp, start, count)) >= count) return (chainalloc(pmp, start, count, fillwith, retcluster, got)); - } else + } else len = 0; newst = pmp->pm_nxtfree; @@ -1080,8 +1080,8 @@ extendfile(dep, count, bpp, ncp, flags) */ if (dep->de_Attributes & ATTR_DIRECTORY) bp = getblk(pmp->pm_devvp, - cntobn(pmp, cn++), - pmp->pm_bpcluster, 0, 0, 0); + cntobn(pmp, cn++), + pmp->pm_bpcluster, 0, 0, 0); else { bp = getblk(DETOV(dep), de_cn2bn(pmp, frcn++),