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