[dovecot-cvs] dovecot/src/lib buffer.c, 1.24, 1.25 buffer.h, 1.12,
1.13
cras at dovecot.org
cras at dovecot.org
Sat Mar 12 14:24:32 EET 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv32494
Modified Files:
buffer.c buffer.h
Log Message:
Minor cleanup: added _r suffix to used_size pointer parameters.
Index: buffer.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- buffer.c 7 Nov 2004 15:17:15 -0000 1.24
+++ buffer.c 12 Mar 2005 12:24:28 -0000 1.25
@@ -253,12 +253,12 @@
return buffer_get_space_unsafe(buf, buf->used, size);
}
-void *buffer_get_modifyable_data(const buffer_t *_buf, size_t *used_size)
+void *buffer_get_modifyable_data(const buffer_t *_buf, size_t *used_size_r)
{
struct real_buffer *buf = (struct real_buffer *)_buf;
- if (used_size != NULL)
- *used_size = buf->used;
+ if (used_size_r != NULL)
+ *used_size_r = buf->used;
return buf->w_buffer;
}
Index: buffer.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- buffer.h 8 Oct 2004 17:51:48 -0000 1.12
+++ buffer.h 12 Mar 2005 12:24:28 -0000 1.13
@@ -70,7 +70,7 @@
/* Like buffer_get_data(), but don't return it as const. Returns NULL if the
buffer is non-modifyable. WARNING: The returned address may become invalid
if you add more data to buffer. */
-void *buffer_get_modifyable_data(const buffer_t *buf, size_t *used_size);
+void *buffer_get_modifyable_data(const buffer_t *buf, size_t *used_size_r);
/* Set the "used size" of buffer, ie. 0 would set the buffer empty.
Must not be used to grow buffer. */
@@ -82,10 +82,10 @@
/* Returns pointer to beginning of buffer data. Current used size of buffer is
stored in used_size if it's non-NULL. */
static inline const void *
-buffer_get_data(const buffer_t *buf, size_t *used_size)
+buffer_get_data(const buffer_t *buf, size_t *used_size_r)
{
- if (used_size != NULL)
- *used_size = buf->used;
+ if (used_size_r != NULL)
+ *used_size_r = buf->used;
return buf->data;
}
More information about the dovecot-cvs
mailing list