From e210fa949da688d182d928638b65fcf236af3249 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 9 Oct 2023 13:35:11 -0700 Subject: [PATCH] client: Extract pending-send object as send_t --- client/tattlekey.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/tattlekey.c b/client/tattlekey.c index a11e6c1..78d1dcf 100644 --- a/client/tattlekey.c +++ b/client/tattlekey.c @@ -7,6 +7,12 @@ #include "config.h" #include "net.h" +typedef struct { + uint32_t timestamp; + u16_t seq; + u8_t send_count; +} send_t; + enum event_type { BUTTONPRESS, SEND }; typedef struct { enum event_type type; @@ -14,11 +20,7 @@ typedef struct { struct { uint32_t timestamp; } buttonpress; - struct { - uint32_t timestamp; - u16_t seq; - u8_t send_count; - } send; + send_t send; }; } event_t; -- 2.44.1