From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/venti/srv/buildbuck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/venti/srv/buildbuck.c') diff --git a/src/cmd/venti/srv/buildbuck.c b/src/cmd/venti/srv/buildbuck.c index 240e77d7..225bdc43 100644 --- a/src/cmd/venti/srv/buildbuck.c +++ b/src/cmd/venti/srv/buildbuck.c @@ -21,7 +21,7 @@ initiestream(Part *part, u64int off, u64int clumps, u32int size) { IEStream *ies; -//ZZZ out of memory? +/*ZZZ out of memory? */ ies = MKZ(IEStream); ies->buf = MKN(u8int, size); ies->epos = ies->buf; @@ -61,7 +61,7 @@ peekientry(IEStream *ies) nn -= n; if(nn == 0) return nil; -//fprint(2, "peek %d from %llud into %p\n", nn, ies->off, ies->epos); +/*fprint(2, "peek %d from %llud into %p\n", nn, ies->off, ies->epos); */ if(readpart(ies->part, ies->off, ies->epos, nn) < 0){ seterr(EOk, "can't read sorted index entries: %r"); return nil; @@ -101,7 +101,7 @@ buildbucket(Index *ix, IEStream *ies, IBucket *ib, uint maxdata) b = peekientry(ies); if(b == nil) return TWID32; -//fprint(2, "b=%p ies->n=%lld ib.n=%d buck=%d score=%V\n", b, ies->n, ib->n, iebuck(ix, b, ib, ies), b); +/*fprint(2, "b=%p ies->n=%lld ib.n=%d buck=%d score=%V\n", b, ies->n, ib->n, iebuck(ix, b, ib, ies), b); */ if(ib->n == 0) buck = iebuck(ix, b, ib, ies); else{ -- cgit v1.2.3