diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-22 14:49:14 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-22 14:49:14 +0200 |
commit | 3926c3df7f94d8c99f1dc8d4996b1aa117aac5f9 (patch) | |
tree | 5ab66a90d395e3cf8d4d4097514891b7a72dba26 /src/text-buffer.c | |
parent | 39dd684496a6750a2458873e3c736bd8569e8db0 (diff) |
piece-table & text-buffer: Use `const`.
Diffstat (limited to 'src/text-buffer.c')
-rw-r--r-- | src/text-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text-buffer.c b/src/text-buffer.c index cc764bc..0a6f140 100644 --- a/src/text-buffer.c +++ b/src/text-buffer.c @@ -48,7 +48,7 @@ text_buffer_append (text_buffer *tb, char c) } void -text_buffer_append_str (text_buffer *tb, char *c, size_t len) +text_buffer_append_str (text_buffer *tb, const char *c, size_t len) { size_t i; for (i=0; i<len; i++) @@ -72,7 +72,7 @@ text_buffer_clear (text_buffer *tb) } void -text_buffer_fill (text_buffer *tb, char *fill, size_t size) +text_buffer_fill (text_buffer *tb, const char *fill, size_t size) { size_t i; tb->used = size; |