Mercurial > dropbear
comparison packet.c @ 857:c19acba28590
use oldstyle comments
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 14 Nov 2013 22:03:30 +0800 |
parents | a625f9e135a4 |
children | 220f55d540ae |
comparison
equal
deleted
inserted
replaced
856:f56c41030c15 | 857:c19acba28590 |
---|---|
96 | 96 |
97 while (written > 0) { | 97 while (written > 0) { |
98 writebuf = (buffer*)examine(&ses.writequeue); | 98 writebuf = (buffer*)examine(&ses.writequeue); |
99 len = writebuf->len - 1 - writebuf->pos; | 99 len = writebuf->len - 1 - writebuf->pos; |
100 if (len > written) { | 100 if (len > written) { |
101 // partial buffer write | 101 /* partial buffer write */ |
102 buf_incrpos(writebuf, written); | 102 buf_incrpos(writebuf, written); |
103 written = 0; | 103 written = 0; |
104 } else { | 104 } else { |
105 written -= len; | 105 written -= len; |
106 dequeue(&ses.writequeue); | 106 dequeue(&ses.writequeue); |