From 77e915d73ae2367245976f9c42c9e8f3a630ab12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:24:30 +0200 Subject: text: mark text_state argument as const --- text.c | 2 +- text.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/text.c b/text.c index 486e085..8d95fd9 100644 --- a/text.c +++ b/text.c @@ -814,7 +814,7 @@ size_t text_restore(Text *txt, time_t time) { return history_traverse_to(txt, rev); } -time_t text_state(Text *txt) { +time_t text_state(const Text *txt) { return txt->history->time; } diff --git a/text.h b/text.h index 17445fc..16d7190 100644 --- a/text.h +++ b/text.h @@ -197,7 +197,7 @@ size_t text_restore(Text*, time_t); * .. note:: TODO: This is currently not the same as the time of the last snapshot. * @endrst */ -time_t text_state(Text*); +time_t text_state(const Text*); /** * @} * @defgroup lines -- cgit v1.2.3