mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-11-02 16:12:16 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user