r17675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17674‎ | r17675 | r17676 >
Date:16:33, 14 November 2006
Author:river
Status:old
Tags:
Comment:
fix compile
Modified paths:
  • /trunk/willow/src/willow/flowio.cc (modified) (history)

Diff [purge]

Index: trunk/willow/src/willow/flowio.cc
@@ -193,7 +193,7 @@
194194 socket_sink::data_ready(char const *buf, size_t len, ssize_t &discard)
195195 {
196196 ssize_t wrote;
197 - if ((wrote = _socket->write(buf + off, len - off)) == -1) {
 197+ if ((wrote = _socket->write(buf, len)) == -1) {
198198 if (errno == EAGAIN) {
199199 _sink_spigot->sp_cork();
200200 if (!_reg) {
@@ -239,7 +239,6 @@
240240 }
241241 _sink_spigot->sp_cork();
242242 return sink_result_error;
243 - break;
244243 }
245244 discard += wrote;
246245 _counter += wrote;