From d2ab5ad50072a3c31be1a6f1f88cf93c137fb47f Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 21 Oct 1999 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1999-10-21 --- port/devsdp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/port/devsdp.c b/port/devsdp.c index 4fef4627fe063e49329e694af7d732bbafb0f903..e50fccc699705a7ed02308cf57c5c3280925be4a 100644 --- a/port/devsdp.c +++ b/port/devsdp.c @@ -1040,8 +1040,8 @@ convstats(Conv *c, int local, char *buf, int n) p += snprint(p, ep-p, "outDataPackets: %lud\n", stats->outDataPackets); p += snprint(p, ep-p, "outDataBytes: %lud\n", stats->outDataBytes); p += snprint(p, ep-p, "outCompDataBytes: %lud\n", stats->outCompDataBytes); - for(i=0; ioutCompStats[i] == 0) + for(i=0; ioutCompStats[i] == 0) continue; p += snprint(p, ep-p, "outCompStats[%d]: %lud\n", i, stats->outCompStats[i]); } @@ -1078,7 +1078,7 @@ convack(Conv *c) hnputl(ack->outDataPackets, s->outDataPackets); hnputl(ack->outDataBytes, s->outDataBytes); hnputl(ack->outCompDataBytes, s->outCompDataBytes); - for(i=0; ioutCompStats+i*4, s->outCompStats[i]); hnputl(ack->inPackets, s->inPackets); hnputl(ack->inDataPackets, s->inDataPackets); @@ -1324,7 +1324,6 @@ convicontrol(Conv *c, int subtype, Block *b) { ulong cseq; AckPkt *ack; - int i; if(BLEN(b) < 4) return; @@ -2002,7 +2001,7 @@ thwackcomp(Conv *c, int, ulong seq, Block **bp) b->rp[3] = c->in.seq; bb = allocb(BLEN(b)); - nn = thwack(c->out.compstate, bb->wp, b->rp, BLEN(b), seq, c->lstats.outCompStats); + nn = thwack(c->out.compstate, bb->wp, b->rp, BLEN(b), seq); if(nn < 0) { freeb(bb); *bp = b;