aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/file.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/libventi/file.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/libventi/file.c')
-rw-r--r--src/libventi/file.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libventi/file.c b/src/libventi/file.c
index e97df39c..8a051248 100644
--- a/src/libventi/file.c
+++ b/src/libventi/file.c
@@ -4,7 +4,7 @@
* The single point of truth for the info about the VtFiles themselves
* is the block data. Because of this, there is no explicit locking of
* VtFile structures, and indeed there may be more than one VtFile
- * structure for a given Venti file. They synchronize through the
+ * structure for a given Venti file. They synchronize through the
* block cache.
*
* This is a bit simpler than fossil because there are no epochs
@@ -182,7 +182,7 @@ _vtfilecreate(VtFile *r, int o, int psize, int dsize, int type)
int epb;
VtFile *rr;
u32int offset;
-
+
assert(ISLOCKED(r));
assert(type == VtDirType || type == VtDataType);
@@ -574,7 +574,7 @@ growdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth)
if(bb == nil)
break;
memmove(bb->data, b->score, VtScoreSize);
- memmove(e->score, bb->score, VtScoreSize);
+ memmove(e->score, bb->score, VtScoreSize);
e->type++;
e->flags |= VtEntryLocal;
vtblockput(b);
@@ -671,7 +671,7 @@ mkindices(VtEntry *e, u32int bn, int *index)
}
return i;
}
-
+
VtBlock *
vtfileblock(VtFile *r, u32int bn, int mode)
{
@@ -985,7 +985,7 @@ sizetodepth(uvlong s, int psize, int dsize)
{
int np;
int d;
-
+
/* determine pointer depth */
np = psize/VtScoreSize;
s = (s + dsize - 1)/dsize;
@@ -1125,7 +1125,7 @@ flushblock(VtCache *c, VtBlock *bb, uchar score[VtScoreSize], int ppb, int epb,
vtentrypack(&e, b->data, i);
}
break;
-
+
default: /* VtPointerTypeX */
for(i=0; i<ppb; i++){
if(flushblock(c, nil, b->data+VtScoreSize*i, ppb, epb, type-1) < 0)
@@ -1233,13 +1233,13 @@ vtfileflushbefore(VtFile *r, u64int offset)
}else{
/*
* interior node: pointer blocks.
- * specifically, b = bi[i] is a block whose index[i-1]'th entry
- * points at bi[i-1].
+ * specifically, b = bi[i] is a block whose index[i-1]'th entry
+ * points at bi[i-1].
*/
b = bi[i];
/*
- * the index entries up to but not including index[i-1] point at
+ * the index entries up to but not including index[i-1] point at
* finished blocks, so flush them for sure.
*/
for(j=0; j<index[i-1]; j++)