Skip to content

Commit

Permalink
Fix mosquitto_evt_tick struct members.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Feb 6, 2021
1 parent 24920c9 commit 7fe6387
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Broker:
- Fix incorrect datatypes in `struct mosquitto_evt_tick`. This changes the
size and offset of two of the members of this struct, and changes the size
of the struct. This is an ABI break, but is considered to be acceptable
because plugins should never be allocating their own instance of this
struct, and currently none of the struct members are used for anything, so a
plugin should not be accessing them.

Clients:
- Fix possible loss of data in `mosquitto_pub -l` when sending multiple long
lines. Closes #2078.
Expand Down
5 changes: 3 additions & 2 deletions include/mosquitto_broker.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ extern "C" {
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <time.h>

struct mosquitto;
typedef struct mqtt5__property mosquitto_property;
Expand Down Expand Up @@ -157,8 +158,8 @@ struct mosquitto_evt_tick {
void *future;
long now_ns;
long next_ns;
int now_s;
int next_s;
time_t now_s;
time_t next_s;
void *future2[4];
};

Expand Down

0 comments on commit 7fe6387

Please sign in to comment.