From d29c3cf7b76c6a1935684124b4d7cad69de94c78 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 6 Nov 2021 12:01:57 +0100 Subject: config: add {str,value}_to_uint{16,32}() This allows us to pass the final pointer directly to the conversion functions, as well as allowing us to print outside-range errors. --- terminal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 8c847cfd..10be6ae3 100644 --- a/terminal.h +++ b/terminal.h @@ -526,7 +526,7 @@ struct terminal { int timer_fd; } title; - int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */ + uint32_t scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */ struct { bool enabled; @@ -535,7 +535,7 @@ struct terminal { /* Render threads + synchronization primitives */ struct { - size_t count; + uint16_t count; sem_t start; sem_t done; mtx_t lock; -- cgit v1.3