aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/copy.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/cmd/venti/copy.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/cmd/venti/copy.c')
-rw-r--r--src/cmd/venti/copy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/venti/copy.c b/src/cmd/venti/copy.c
index d6d770bc..50d9bb20 100644
--- a/src/cmd/venti/copy.c
+++ b/src/cmd/venti/copy.c
@@ -53,7 +53,7 @@ static int
havevisited(uchar score[VtScoreSize], int type)
{
ScoreTree a;
-
+
if(scoretree == nil)
return 0;
memmove(a.score, score, VtScoreSize);
@@ -99,7 +99,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth)
if(memcmp(score, vtzeroscore, VtScoreSize) == 0 || memcmp(score, zeroscore, VtScoreSize) == 0)
return;
-
+
if(havevisited(score, type)){
nskip++;
return;
@@ -145,7 +145,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth)
continue;
walk(e.score, e.type, e.type&VtTypeBaseMask, depth+1);
/*
- * Don't repack unless we're rewriting -- some old
+ * Don't repack unless we're rewriting -- some old
* vac files have psize==0 and dsize==0, and these
* get rewritten by vtentryunpack to have less strange
* block sizes. So vtentryunpack; vtentrypack does not
@@ -175,7 +175,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth)
sysfatal("writing block %V (type %d): %r", score, type);
}
if(!rewrite && memcmp(score, nscore, VtScoreSize) != 0)
- sysfatal("not rewriting: wrote %V got %V", score, nscore);
+ sysfatal("not rewriting: wrote %V got %V", score, nscore);
if((type !=0 || base !=0) && verbose){
n = vtzerotruncate(type, buf, n);
@@ -185,7 +185,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth)
fprint(2, " ");
fprint(2, "<- %V\n", score);
}
-
+
markvisited(score, type);
free(buf);
}