function declaration from comments mismatch in mosquitto_plugin.h
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mosquitto |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I wrote a auth plugin starting from your test plugin coded in C and i found something may be wrong in your code.
1)
in mosquitto_plugin.h:
int mosquitto_
and other functions such as
int mosquitto_
first one has void **user_data and others void *userdata. Is this right?
2)
in your test code test/broker/
int mosquitto_
int mosquitto_
int mosquitto_
int mosquitto_
struct mosquitto_auth_opt **auth_opts
should be
struct mosquitto_auth_opt *auth_opts
Changed in mosquitto: | |
status: | New → Invalid |
status: | Invalid → Opinion |
status: | Opinion → New |
Changed in mosquitto: | |
milestone: | none → 1.1 |
status: | Fix Committed → Fix Released |
I agree that this is incorrect. It only works because the argument isn't referred to at all. I have committed a fix: https:/ /bitbucket. org/oojah/ mosquitto/ changeset/ 1d54675434a77f3 e2308bd5d834f59 d0d942be94
Thanks for the report!