Skip to content

Commit

Permalink
Fix return type of _aws_iot_mqtt_internal_is_topic_matched
Browse files Browse the repository at this point in the history
Fixes #58
  • Loading branch information
vareddy committed Oct 17, 2017
1 parent ca06334 commit 58b999c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws_iot_mqtt_client_common_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ static IoT_Error_t _aws_iot_mqtt_internal_read_packet(AWS_IoT_Client *pClient, T
// assume topic filter and name is in correct format
// # can only be at end
// + and # can only be next to separator
static char _aws_iot_mqtt_internal_is_topic_matched(char *pTopicFilter, char *pTopicName, uint16_t topicNameLen) {
static bool _aws_iot_mqtt_internal_is_topic_matched(char *pTopicFilter, char *pTopicName, uint16_t topicNameLen) {

char *curf, *curn, *curn_end;

if(NULL == pTopicFilter || NULL == pTopicName) {
return NULL_VALUE_ERROR;
return false;
}

curf = pTopicFilter;
Expand Down

0 comments on commit 58b999c

Please sign in to comment.