Fix some style bugs (some whitespace errors only).

Approved by:	re (kensmith) (blanket)
This commit is contained in:
Bruce Evans 2007-08-07 03:22:10 +00:00
parent d2bb66bacd
commit b6d0381e7e
2 changed files with 11 additions and 11 deletions

View File

@ -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)

View File

@ -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++),