"type" is just 8 bit. "frame_ready" and "masked" as booleans. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/websocket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/websocket.c b/server/websocket.c index 9a9400375..38496fb5a 100644 --- a/server/websocket.c +++ b/server/websocket.c @@ -68,11 +68,11 @@ #define WEBSOCKET_MAX_HEADER_SIZE (1 + 9 + 4) typedef struct { - int type; - int masked; + uint8_t type; uint8_t header[WEBSOCKET_MAX_HEADER_SIZE]; int header_pos; - int frame_ready:1; + bool frame_ready:1; + bool masked:1; uint8_t mask[4]; uint64_t relayed; uint64_t expected_len; -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel