Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Different sizeof(struct mosquitto) in Broker #180
Yes, that is as expected. struct mosquitto is a private type, you shouldn't be worrying about its size.
The struct mosquitto in src/read_handle.c is as used by the broker.
The broker and client library have different requirements, so the struct changes.
What is it you're trying to achieve?
The sizeof(struct mosquitto) 448 and 456 was printed by the same broker.
Because struct mosquitto is different size between src/ and lib/ in the same broker!!