diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/venti/srv/index.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/venti/srv/index.c')
-rw-r--r-- | src/cmd/venti/srv/index.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/venti/srv/index.c b/src/cmd/venti/srv/index.c index 46bf91e2..8cff4180 100644 --- a/src/cmd/venti/srv/index.c +++ b/src/cmd/venti/srv/index.c @@ -23,16 +23,16 @@ #include "dat.h" #include "fns.h" -//static int bucklook(u8int *score, int type, u8int *data, int n); -//static int writebucket(ISect *is, u32int buck, IBucket *ib, DBlock *b); -//static int okibucket(IBucket *ib, ISect *is); +/*static int bucklook(u8int *score, int type, u8int *data, int n); */ +/*static int writebucket(ISect *is, u32int buck, IBucket *ib, DBlock *b); */ +/*static int okibucket(IBucket *ib, ISect *is); */ static int initindex1(Index*); static ISect *initisect1(ISect *is); -//static int splitiblock(Index *ix, DBlock *b, ISect *is, u32int buck, IBucket *ib); +/*static int splitiblock(Index *ix, DBlock *b, ISect *is, u32int buck, IBucket *ib); */ #define KEY(k,d) ((d) ? (k)>>(32-(d)) : 0) -//static QLock indexlock; //ZZZ +/*static QLock indexlock; //ZZZ */ static char IndexMagic[] = "venti index configuration"; @@ -457,9 +457,9 @@ initisect1(ISect *is) v = is->part->size & ~(u64int)(is->blocksize - 1); if(is->blockbase + (u64int)is->blocks * is->blocksize != v){ seterr(ECorrupt, "invalid blocks in index section %s", is->name); -//ZZZZZZZZZ -// freeisect(is); -// return nil; +/*ZZZZZZZZZ */ +/* freeisect(is); */ +/* return nil; */ } if(is->stop - is->start > is->blocks){ @@ -483,7 +483,7 @@ wbisect(ISect *is) b = alloczblock(HeadSize, 1, 0); if(b == nil) -//ZZZ set error? +/*ZZZ set error? */ return -1; if(packisect(is, b->data) < 0){ |