Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib/ostream.c @ 927:935d0b1df754 HEAD
Remove one of the previous speedups, it broke things
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 09 Jan 2003 01:35:09 +0200 |
parents | 30babf122f97 |
children | 411006be3c66 |
comparison
equal
deleted
inserted
replaced
926:274c722acc35 | 927:935d0b1df754 |
---|---|
97 struct _ostream *_stream = stream->real_stream; | 97 struct _ostream *_stream = stream->real_stream; |
98 | 98 |
99 if (stream->closed) | 99 if (stream->closed) |
100 return -1; | 100 return -1; |
101 | 101 |
102 if (size == 0) | |
103 return 0; | |
104 | |
102 return _stream->send(_stream, data, size); | 105 return _stream->send(_stream, data, size); |
103 } | 106 } |
104 | 107 |
105 ssize_t o_stream_send_str(struct ostream *stream, const char *str) | 108 ssize_t o_stream_send_str(struct ostream *stream, const char *str) |
106 { | 109 { |