From: Jérémie Galarneau Date: Thu, 6 Aug 2020 19:19:54 +0000 (-0400) Subject: payload-view: mark lttng_payload_view_get_fd_handle_count as const X-Git-Tag: v2.13.0-rc1~549 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=18eec1c924daf8d63a5f2cc06b1c1fdd9a838c6e;p=lttng-tools.git payload-view: mark lttng_payload_view_get_fd_handle_count as const Signed-off-by: Jérémie Galarneau Change-Id: I0f0b1620e04fa5a5ae06b096dc940504a7d7553e --- diff --git a/src/common/payload-view.c b/src/common/payload-view.c index 43ddf3132..4a4edea14 100644 --- a/src/common/payload-view.c +++ b/src/common/payload-view.c @@ -70,7 +70,8 @@ struct lttng_payload_view lttng_payload_view_init_from_buffer( } LTTNG_HIDDEN -int lttng_payload_view_get_fd_handle_count(struct lttng_payload_view *payload_view) +int lttng_payload_view_get_fd_handle_count( + const struct lttng_payload_view *payload_view) { int ret; size_t position; diff --git a/src/common/payload-view.h b/src/common/payload-view.h index a07c0be00..47c2c8c91 100644 --- a/src/common/payload-view.h +++ b/src/common/payload-view.h @@ -140,7 +140,7 @@ struct lttng_payload_view lttng_payload_view_init_from_buffer( */ LTTNG_HIDDEN int lttng_payload_view_get_fd_handle_count( - struct lttng_payload_view *payload_view); + const struct lttng_payload_view *payload_view); /** * Pop an fd handle from a payload view.