xref: /OK3568_Linux_fs/buildroot/package/frecon/0006-Fix-compile-warnings-with-libtsm-4.x.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 57acefb1d5f2793ba80addb5f837ab624e836c17 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Fri, 10 Jun 2022 16:39:32 +0800
4Subject: [PATCH 6/9] Fix compile warnings with libtsm 4.x
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 term.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/term.c b/term.c
12index 8f391ef..4b24ff6 100644
13--- a/term.c
14+++ b/term.c
15@@ -85,7 +85,7 @@ static void __attribute__ ((noreturn)) term_run_child(terminal_t* terminal)
16 	}
17 }
18
19-static int term_draw_cell(struct tsm_screen* screen, uint32_t id,
20+static int term_draw_cell(struct tsm_screen* screen, uint64_t id,
21 			  const uint32_t* ch, size_t len,
22 			  unsigned int cwidth, unsigned int posx,
23 			  unsigned int posy,
24@@ -353,7 +353,7 @@ static bool is_xterm_osc(char *osc)
25 	return false;
26 }
27
28-static void term_osc_cb(struct tsm_vte *vte, const uint32_t *osc_string,
29+static void term_osc_cb(struct tsm_vte *vte, const char *osc_string,
30 			size_t osc_len, void *data)
31 {
32 	terminal_t* terminal = (terminal_t*)data;
33--
342.20.1
35
36