]> PatchyGit - patchyircd.git/commitdiff
use unsigned for bitfield
authorEgor <egor@patchysicp.xyz>
Wed, 18 Oct 2023 20:45:56 +0000 (23:45 +0300)
committerEgor <egor@patchysicp.xyz>
Wed, 18 Oct 2023 20:45:56 +0000 (23:45 +0300)
common.h

index 6681546..8ece287 100644 (file)
--- 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;