ME910 support
Dependents: 5_Dragonfly_Cayenne_Sprint_IKS01A1
Fork of Cayenne-MQTT-mbed-MTSAS by
Diff: src/MQTTCommon/MQTTDeserializePublish.c
- Branch:
- feature/multivalue
- Revision:
- 22:0dbabcc6e7b2
- Parent:
- 0:09ef59d2d0f7
diff -r e46b1f93c011 -r 0dbabcc6e7b2 src/MQTTCommon/MQTTDeserializePublish.c --- a/src/MQTTCommon/MQTTDeserializePublish.c Tue Nov 08 18:48:37 2016 -0700 +++ b/src/MQTTCommon/MQTTDeserializePublish.c Wed Jan 25 10:34:16 2017 -0700 @@ -33,7 +33,7 @@ * @return error code. 1 is success */ int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName, - unsigned char** payload, int* payloadlen, unsigned char* buf, int buflen) + unsigned char** payload, size_t* payloadlen, unsigned char* buf, size_t buflen) { MQTTHeader header = {0}; unsigned char* curdata = buf; @@ -76,7 +76,7 @@ * @param buflen the length in bytes of the data in the supplied buffer * @return error code. 1 is success, 0 is failure */ -int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, int buflen) +int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, size_t buflen) { MQTTHeader header = {0}; unsigned char* curdata = buf;