aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-06 11:01:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:04:29 +0000
commitd29c3cf7b76c6a1935684124b4d7cad69de94c78 (patch)
tree507c0c3aca15c7539972da49d93471d6c20452d2 /terminal.h
parentconfig: add value_to_str() (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 2 insertions, 2 deletions
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;