fw: Fix erroneous type in frame header

This commit is contained in:
Daniel Jobson 2024-10-09 15:32:51 +02:00
parent 0ea0eeb967
commit f13366538e
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status,
static int parseframe(uint8_t b, struct frame_header *hdr); static int parseframe(uint8_t b, struct frame_header *hdr);
static void write(uint8_t *buf, size_t nbytes); static void write(uint8_t *buf, size_t nbytes);
static int read(uint8_t *buf, size_t bufsize, size_t nbytes); static int read(uint8_t *buf, size_t bufsize, size_t nbytes);
static int bytelen(enum cmdlen cmdlen); static size_t bytelen(enum cmdlen cmdlen);
static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status, static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status,
enum cmdlen len) enum cmdlen len)
@ -165,7 +165,7 @@ static int read(uint8_t *buf, size_t bufsize, size_t nbytes)
} }
// bytelen returns the number of bytes a cmdlen takes // bytelen returns the number of bytes a cmdlen takes
static int bytelen(enum cmdlen cmdlen) static size_t bytelen(enum cmdlen cmdlen)
{ {
int len = 0; int len = 0;

View File

@ -47,7 +47,7 @@ enum status {
struct frame_header { struct frame_header {
uint8_t id; uint8_t id;
enum endpoints endpoint; enum endpoints endpoint;
enum cmdlen len; size_t len;
}; };
/*@ -exportlocal @*/ /*@ -exportlocal @*/