From: Jérémie Galarneau Date: Fri, 15 May 2020 19:55:27 +0000 (-0400) Subject: Make lttng_dynamic_buffer_append_buffer const-correct X-Git-Tag: v2.13.0-rc1~644 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=38b6c4f5eb49d404ff3f2248b017cea415c49618;p=lttng-tools.git Make lttng_dynamic_buffer_append_buffer const-correct Signed-off-by: Jérémie Galarneau Change-Id: I6d42d2d9f8beca15b026fc43ee57270173480c2d --- diff --git a/src/common/dynamic-buffer.c b/src/common/dynamic-buffer.c index 1ae2fa2c5..7005ef501 100644 --- a/src/common/dynamic-buffer.c +++ b/src/common/dynamic-buffer.c @@ -68,7 +68,7 @@ end: LTTNG_HIDDEN int lttng_dynamic_buffer_append_buffer(struct lttng_dynamic_buffer *dst_buffer, - struct lttng_dynamic_buffer *src_buffer) + const struct lttng_dynamic_buffer *src_buffer) { int ret; diff --git a/src/common/dynamic-buffer.h b/src/common/dynamic-buffer.h index 1f27f7403..1352a67c1 100644 --- a/src/common/dynamic-buffer.h +++ b/src/common/dynamic-buffer.h @@ -46,7 +46,7 @@ int lttng_dynamic_buffer_append(struct lttng_dynamic_buffer *buffer, */ LTTNG_HIDDEN int lttng_dynamic_buffer_append_buffer(struct lttng_dynamic_buffer *dst_buffer, - struct lttng_dynamic_buffer *src_buffer); + const struct lttng_dynamic_buffer *src_buffer); /* * Set the buffer's size to new_size. The capacity of the buffer will