From cf0270c1ea6136bbb8eeca1b91319118317285c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 29 Dec 2020 10:40:58 +0100 Subject: [PATCH] =?UTF-8?q?box-drawing:=20make=20=E2=80=98term=E2=80=99=20?= =?UTF-8?q?parameter=20const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box-drawing.c | 2 +- box-drawing.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/box-drawing.c b/box-drawing.c index 15b6e5c6..fb6f8d1b 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -1512,7 +1512,7 @@ draw_glyph(wchar_t wc, uint8_t *buf, int width, int height, int stride, int dpi) } struct fcft_glyph * -box_drawing(struct terminal *term, wchar_t wc) +box_drawing(const struct terminal *term, wchar_t wc) { int width = term->cell_width; int height = term->cell_height; diff --git a/box-drawing.h b/box-drawing.h index aecbf1b3..e4633c7e 100644 --- a/box-drawing.h +++ b/box-drawing.h @@ -3,4 +3,4 @@ #include struct terminal; -struct fcft_glyph *box_drawing(struct terminal *term, wchar_t wc); +struct fcft_glyph *box_drawing(const struct terminal *term, wchar_t wc);