From: Jonathan Rajotte Date: Tue, 21 Jan 2020 19:23:07 +0000 (-0500) Subject: Fix: use lttng_tracker_id_status enum values X-Git-Tag: v2.12.0-rc1~68 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=79408a2bac87e03a9dd9674e10c1ec83ec1060cf Fix: use lttng_tracker_id_status enum values This is probably a copy paste error. This should not be a problem in any case since the final values for both enums are the same. Signed-off-by: Jonathan Rajotte Change-Id: Ia1dc173a4eae8b7d9bff35a718c93331b714f5d6 Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/tracker.c b/src/common/tracker.c index ec908081c..126f8252a 100644 --- a/src/common/tracker.c +++ b/src/common/tracker.c @@ -277,13 +277,13 @@ const struct lttng_tracker_id *lttng_tracker_ids_get_at_index( return lttng_tracker_ids_get_pointer_of_index(ids, index); } -int lttng_tracker_ids_get_count(const struct lttng_tracker_ids *ids, unsigned int *count) +enum lttng_tracker_id_status lttng_tracker_ids_get_count(const struct lttng_tracker_ids *ids, unsigned int *count) { - enum lttng_tracker_id_status status = LTTNG_ROTATION_STATUS_OK; + enum lttng_tracker_id_status status = LTTNG_TRACKER_ID_STATUS_OK; if (!ids || !count) { - status = LTTNG_ROTATION_STATUS_INVALID; + status = LTTNG_TRACKER_ID_STATUS_INVALID; goto end; }