From 091c5333137e5c59e7abb6725b3cafa4890958f3 Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 18 Oct 2023 23:45:56 +0300 Subject: [PATCH] use unsigned for bitfield --- common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.h b/common.h index 6681546..8ece287 100644 --- a/common.h +++ b/common.h @@ -53,9 +53,9 @@ struct client_data { time_t signon; time_t lastactivity; unsigned int caps; - char want_write_for_read :1; - char want_read_for_write :1; - char want_write_for_write :1; + unsigned want_write_for_read :1; + unsigned want_read_for_write :1; + unsigned want_write_for_write :1; }; struct channel { char *key; -- 2.56.0