Use size_t for all lengths

Previously, uint32_t and size_t were used interchangeably. These types are
interchangeable on Xtensa gcc (uint32_t == size_t == unsigned int), but not on most
other 32-bit gcc architectures (where uint32_t == unsigned long, size_t ==
unsigned int).
This commit is contained in:
Angus Gratton
2020-10-09 16:33:12 +11:00
parent 01594bf118
commit b9db8d9020
3 changed files with 21 additions and 21 deletions

View File

@@ -43,8 +43,8 @@ typedef struct mqtt_state
uint8_t *out_buffer;
int in_buffer_length;
int out_buffer_length;
uint32_t message_length;
uint32_t in_buffer_read_len;
size_t message_length;
size_t in_buffer_read_len;
mqtt_message_t *outbound_message;
mqtt_connection_t mqtt_connection;
uint16_t pending_msg_id;