Commit b1d9b0e0 authored by KIM JungYong's avatar KIM JungYong Committed by Uze Choi

Fix build fail on notification with MQ.

When building of notificaiton with MQ, build failed
because related API call invalid(removed) function.

in this patch, removed function was changed.

Change-Id: Ib97a5c966f4bd8907bfecbfd1463340574c2063c
Signed-off-by: default avatarKIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19031Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent 63fd2641
......@@ -76,7 +76,7 @@ NSResult NSConsumerSubscribeMQService(const char * serverAddress, const char * t
bool isStartedConsumer = NSIsStartedConsumer();
NS_VERIFY_NOT_NULL(isStartedConsumer == true ? (void *) 1 : NULL, NS_ERROR);
char * queryAddr = NSGetQueryAddress(serverAddress);
char * queryAddr = OICStrdup(serverAddress);
NS_VERIFY_NOT_NULL(queryAddr, NS_ERROR);
NSMQTopicAddress * topicAddr = (NSMQTopicAddress *)OICMalloc(sizeof(NSMQTopicAddress));
......
......@@ -216,7 +216,7 @@ NSResult NSProviderSubscribeMQService(const char * serverAddress, const char * t
return NS_FAIL;
}
topicAddr->serverAddr = NSGetQueryAddress(serverAddress);
topicAddr->serverAddr = OICStrdup(serverAddress);
topicAddr->topicName = OICStrdup(topicName);
NS_LOG_V(DEBUG, "input Topic Name : %s", topicAddr->topicName);
......@@ -450,7 +450,7 @@ NSResult NSProviderSetConsumerTopic(const char * consumerId, const char * topicN
"Configuration must set to true.");
if (topicSubData)
{
OICFreeAndSetToNull(&topicSubData);
OICFreeAndSetToNull((void**)&topicSubData);
}
pthread_mutex_unlock(&nsInitMutex);
return NS_FAIL;
......@@ -489,7 +489,7 @@ NSResult NSProviderUnsetConsumerTopic(const char * consumerId, const char * topi
"Configuration must set to true.");
if (topicSubData)
{
OICFreeAndSetToNull(&topicSubData);
OICFreeAndSetToNull((void**)&topicSubData);
}
pthread_mutex_unlock(&nsInitMutex);
return NS_FAIL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment