[dovecot-cvs] dovecot/src/lib buffer.c,1.21,1.22
cras at dovecot.org
cras at dovecot.org
Thu Oct 21 16:40:17 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv31270
Modified Files:
buffer.c
Log Message:
Don't return values from void functions.
Index: buffer.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- buffer.c 8 Oct 2004 17:51:48 -0000 1.21
+++ buffer.c 21 Oct 2004 13:40:14 -0000 1.22
@@ -156,7 +156,7 @@
struct real_buffer *buf = (struct real_buffer *)_buf;
if (pos >= buf->used)
- return buffer_write(_buf, pos, data, data_size);
+ buffer_write(_buf, pos, data, data_size);
buffer_copy(_buf, pos + data_size, _buf, pos, (size_t)-1);
memcpy(buf->w_buffer + pos, data, data_size);
@@ -202,7 +202,7 @@
struct real_buffer *buf = (struct real_buffer *)_buf;
if (pos >= buf->used)
- return buffer_write_zero(_buf, pos, data_size);
+ buffer_write_zero(_buf, pos, data_size);
buffer_copy(_buf, pos + data_size, _buf, pos, (size_t)-1);
memset(buf->w_buffer + pos, 0, data_size);
More information about the dovecot-cvs
mailing list