projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update snapshot(2018-01-04)
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
connectivity
/
src
/
camessagehandler.c
diff --git
a/resource/csdk/connectivity/src/camessagehandler.c
b/resource/csdk/connectivity/src/camessagehandler.c
index
d9be889
..
ebd322b
100755
(executable)
--- a/
resource/csdk/connectivity/src/camessagehandler.c
+++ b/
resource/csdk/connectivity/src/camessagehandler.c
@@
-51,6
+51,8
@@
#define SINGLE_HANDLE
#define MAX_THREAD_POOL_SIZE 20
#define SINGLE_HANDLE
#define MAX_THREAD_POOL_SIZE 20
+#define UNUSED(x) (void)(x)
+
// thread pool handle
static ca_thread_pool_t g_threadPoolHandle = NULL;
// thread pool handle
static ca_thread_pool_t g_threadPoolHandle = NULL;
@@
-895,8
+897,7
@@
static void CAAdapterStateChangedCallback(CATransportAdapter_t transportType, bo
static bool CAClearQueueEndpointDataContext(void *data, uint32_t size, void *ctx)
{
static bool CAClearQueueEndpointDataContext(void *data, uint32_t size, void *ctx)
{
- (void)size;
-
+ UNUSED(size);
if (NULL == data || NULL == ctx)
{
return false;
if (NULL == data || NULL == ctx)
{
return false;
@@
-1174,8
+1175,8
@@
void CASetNetworkMonitorCallback(CANetworkMonitorCallback nwMonitorHandler)
CAResult_t CAInitializeMessageHandler(CATransportAdapter_t transportType)
{
CAResult_t CAInitializeMessageHandler(CATransportAdapter_t transportType)
{
- CASetPacketReceivedCallback(CAReceivedPacketCallback);
- CASetErrorHandleCallback(CAErrorHandler);
+ CASetPacketReceivedCallback(
(CANetworkPacketReceivedCallback)
CAReceivedPacketCallback);
+ CASetErrorHandleCallback(
(CAErrorHandleCallback)
CAErrorHandler);
#ifndef SINGLE_THREAD
// create thread pool
#ifndef SINGLE_THREAD
// create thread pool
@@
-1608,7
+1609,7
@@
static void CALogPDUInfo(const CAData_t *data, const coap_pdu_t *pdu)
if (NULL != data->remoteEndpoint)
{
CALogAdapterTypeInfo(data->remoteEndpoint->adapter);
if (NULL != data->remoteEndpoint)
{
CALogAdapterTypeInfo(data->remoteEndpoint->adapter);
- OIC_LOG_V(
INFO
, ANALYZER_TAG, "Address = [%s]:[%d]", data->remoteEndpoint->addr,
+ OIC_LOG_V(
DEBUG
, ANALYZER_TAG, "Address = [%s]:[%d]", data->remoteEndpoint->addr,
data->remoteEndpoint->port);
}
data->remoteEndpoint->port);
}