\r
void ( * callbackFunction )( void *,\r
IotMqttCallbackParam_t * ) = NULL;\r
- _topicMatchParams_t topicMatchParams =\r
- {\r
- .pTopicName = pCallbackParam->u.message.info.pTopicName,\r
- .topicNameLength = pCallbackParam->u.message.info.topicNameLength,\r
- .exactMatchOnly = false\r
- };\r
+ _topicMatchParams_t topicMatchParams = { 0 };\r
+\r
+ topicMatchParams.pTopicName = pCallbackParam->u.message.info.pTopicName;\r
+ topicMatchParams.topicNameLength = pCallbackParam->u.message.info.topicNameLength;\r
+ topicMatchParams.exactMatchOnly = false;\r
\r
/* Prevent any other thread from modifying the subscription list while this\r
* function is searching. */\r
uint16_t packetIdentifier,\r
int32_t order )\r
{\r
- const _packetMatchParams_t packetMatchParams =\r
- {\r
- .packetIdentifier = packetIdentifier,\r
- .order = order\r
- };\r
+ _packetMatchParams_t packetMatchParams = { 0 };\r
+\r
+ packetMatchParams.packetIdentifier = packetIdentifier;\r
+ packetMatchParams.order = order;\r
\r
IotMutex_Lock( &( pMqttConnection->subscriptionMutex ) );\r
IotListDouble_RemoveAllMatches( &( pMqttConnection->subscriptionList ),\r
bool status = false;\r
_mqttSubscription_t * pSubscription = NULL;\r
IotLink_t * pSubscriptionLink = NULL;\r
- _topicMatchParams_t topicMatchParams =\r
- {\r
- .pTopicName = pTopicFilter,\r
- .topicNameLength = topicFilterLength,\r
- .exactMatchOnly = true\r
- };\r
+ _topicMatchParams_t topicMatchParams = { 0 };\r
+\r
+ topicMatchParams.pTopicName = pTopicFilter;\r
+ topicMatchParams.topicNameLength = topicFilterLength;\r
+ topicMatchParams.exactMatchOnly = false;\r
\r
/* Prevent any other thread from modifying the subscription list while this\r
* function is running. */\r