summaryrefslogtreecommitdiffstats
path: root/src/cmd/venti/score.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-18 05:25:09 +0000
committerrsc <devnull@localhost>2005-01-18 05:25:09 +0000
commitadbb83845c5d3cb02343d7613cfb8385aa909909 (patch)
tree6f2b79ae89f59d014cdbfb6a5bf5ded94bf775fa /src/cmd/venti/score.c
parentd338028eeb45434dab651466dcd664091517e087 (diff)
downloadplan9port-adbb83845c5d3cb02343d7613cfb8385aa909909.tar.gz
plan9port-adbb83845c5d3cb02343d7613cfb8385aa909909.zip
remove venti for now
Diffstat (limited to 'src/cmd/venti/score.c')
-rw-r--r--src/cmd/venti/score.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/cmd/venti/score.c b/src/cmd/venti/score.c
deleted file mode 100644
index 0809e84f..00000000
--- a/src/cmd/venti/score.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include "stdinc.h"
-#include "dat.h"
-#include "fns.h"
-
-u8int zeroscore[VtScoreSize];
-
-void
-scoremem(u8int *score, u8int *buf, int n)
-{
- DigestState s;
-
- memset(&s, 0, sizeof s);
- sha1(buf, n, score, &s);
-}
-
-static int
-hexv(int c)
-{
- if(c >= '0' && c <= '9')
- return c - '0';
- if(c >= 'a' && c <= 'f')
- return c - 'a' + 10;
- if(c >= 'A' && c <= 'F')
- return c - 'A' + 10;
- return -1;
-}
-
-int
-strscore(char *s, u8int *score)
-{
- int i, c, d;
-
- for(i = 0; i < VtScoreSize; i++){
- c = hexv(s[2 * i]);
- if(c < 0)
- return -1;
- d = hexv(s[2 * i + 1]);
- if(d < 0)
- return -1;
- score[i] = (c << 4) + d;
- }
- return s[2 * i] == '\0';
-}