modified the wrong variable identifier in messagehandler.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 2 Nov 2015 08:12:52 +0000 (17:12 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Sat, 21 Nov 2015 09:18:19 +0000 (09:18 +0000)
gReceiveThread was deleted in messagehandler.
but in the case of 'ifndef SINGLE_HANDLE',
we use gReceiveThread still. so I modified the variable name.

Change-Id: I99cb0ae5b6edebc772adf94790f3c3ddde2d8c78
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3997
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/camessagehandler.c

index ebd43c5..cc6a452 100644 (file)
@@ -684,7 +684,7 @@ static bool CADropSecondMessage(CAHistory_t *history, const CAEndpoint_t *ep, ui
             if ((familyFlags ^ item->flags) == CA_IPFAMILY_MASK)
             {
                 OIC_LOG_V(INFO, TAG, "IPv%c duplicate message ignored",
-                                            familyFlags & CA_IPV6 ? '6' : '4');
+                          familyFlags & CA_IPV6 ? '6' : '4');
                 ret = true;
                 break;
             }
@@ -1133,7 +1133,7 @@ CAResult_t CAInitializeMessageHandler()
 
 #ifndef SINGLE_HANDLE // This will be enabled when RI supports multi threading
     // start receive thread
-    res = CAQueueingThreadStart(&gReceiveThread);
+    res = CAQueueingThreadStart(&g_receiveThread);
 
     if (res != CA_STATUS_OK)
     {
@@ -1211,7 +1211,7 @@ void CATerminateMessageHandler()
     if (NULL != g_receiveThread.threadMutex)
     {
 #ifndef SINGLE_HANDLE // This will be enabled when RI supports multi threading
-        CAQueueingThreadStop(&gReceiveThread);
+        CAQueueingThreadStop(&g_receiveThread);
 #endif /* SINGLE_HANDLE */
     }