aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c2
-rw-r--r--text.h2
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