mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
Stop compiler warning message #206
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -232,7 +232,7 @@ int MQTTSNSerialize_register(unsigned char* buf, int buflen, unsigned short topi
|
||||
int topicnamelen = 0;
|
||||
|
||||
FUNC_ENTRY;
|
||||
topicnamelen = (topicname->cstring) ? strlen(topicname->cstring) : topicname->lenstring.len;
|
||||
topicnamelen = (topicname->cstring) ? (int)strlen(topicname->cstring) : topicname->lenstring.len;
|
||||
if ((len = MQTTSNPacket_len(MQTTSNSerialize_registerLength(topicnamelen))) > buflen)
|
||||
{
|
||||
rc = MQTTSNPACKET_BUFFER_TOO_SHORT;
|
||||
|
||||
Reference in New Issue
Block a user