diff options
| -rw-r--r-- | text.c | 2 | ||||
| -rw-r--r-- | text.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1641,7 +1641,7 @@ char *text_bytes_alloc0(const Text *txt, size_t pos, size_t len) { return buf; } -size_t text_size(Text *txt) { +size_t text_size(const Text *txt) { return txt->size; } @@ -119,7 +119,7 @@ void text_free(Text*); * @{ */ /** Return the size in bytes of the whole text. */ -size_t text_size(Text*); +size_t text_size(const Text*); /** * Get file information at time of load or last save, whichever happened more * recently. |
