Skip to content

Commit

Permalink
Merge pull request #87 from yamt/const-application-message
Browse files Browse the repository at this point in the history
constify application_message
  • Loading branch information
LiamBindle authored Jul 23, 2020
2 parents c34aa40 + 9875021 commit 606ef06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ enum MQTTPublishFlags {
ssize_t mqtt_pack_publish_request(uint8_t *buf, size_t bufsz,
const char* topic_name,
uint16_t packet_id,
void* application_message,
const void* application_message,
size_t application_message_size,
uint8_t publish_flags);

Expand Down Expand Up @@ -1453,7 +1453,7 @@ enum MQTTErrors mqtt_connect(struct mqtt_client *client,
*/
enum MQTTErrors mqtt_publish(struct mqtt_client *client,
const char* topic_name,
void* application_message,
const void* application_message,
size_t application_message_size,
uint8_t publish_flags);

Expand Down
4 changes: 2 additions & 2 deletions src/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ enum MQTTErrors mqtt_connect(struct mqtt_client *client,

enum MQTTErrors mqtt_publish(struct mqtt_client *client,
const char* topic_name,
void* application_message,
const void* application_message,
size_t application_message_size,
uint8_t publish_flags)
{
Expand Down Expand Up @@ -1237,7 +1237,7 @@ ssize_t mqtt_pack_ping_request(uint8_t *buf, size_t bufsz) {
ssize_t mqtt_pack_publish_request(uint8_t *buf, size_t bufsz,
const char* topic_name,
uint16_t packet_id,
void* application_message,
const void* application_message,
size_t application_message_size,
uint8_t publish_flags)
{
Expand Down

0 comments on commit 606ef06

Please sign in to comment.