aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-09-30 10:24:30 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-10-10 10:03:17 +0200
commit77e915d73ae2367245976f9c42c9e8f3a630ab12 (patch)
treedc27a78e5431da9b49d14a60b79a56a22ef9d199 /text.c
parent2748b1ccdda3a3b5101d6782387334ca7e72fbe0 (diff)
downloadvis-77e915d73ae2367245976f9c42c9e8f3a630ab12.tar.gz
vis-77e915d73ae2367245976f9c42c9e8f3a630ab12.tar.xz
text: mark text_state argument as const
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 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;
}