Fix warning codes in Easysetup 09/12309/2
authorParkhi <h_w.park@samsung.com>
Tue, 27 Sep 2016 10:39:03 +0000 (19:39 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 28 Sep 2016 12:29:23 +0000 (12:29 +0000)
Change-Id: I98657cf28e67db3956540a7a27eb4a7fc28d79ac
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12309
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp

index 2fcf719..733904b 100755 (executable)
@@ -88,7 +88,7 @@ bool CompareResourceInterface(char *from, char *iface)
             }
         }
 
-    } while (ptr = strtok(NULL, ";"));
+    } while ((ptr = strtok(NULL, ";")));
 
     return false;
 }
index e3d9b9d..b1b69ef 100755 (executable)
@@ -148,7 +148,7 @@ namespace OIC
             else if (pOwnedDevList.size())
             {
                 OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Found owned devices. Count =%d",
-                        pOwnedDevList.size());
+                        (int)pOwnedDevList.size());
                 std::shared_ptr< OC::OCSecureResource > ownedDevice =
                     findEnrolleeSecurityResource(pOwnedDevList);
 
@@ -178,7 +178,7 @@ namespace OIC
             else if (pUnownedDevList.size())
             {
                 OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Found Unowned devices. Count =%d",
-                        pUnownedDevList.size());
+                        (int)pUnownedDevList.size());
 
                 m_unownedDevice = findEnrolleeSecurityResource(pUnownedDevList);
                 if (m_unownedDevice)
@@ -359,7 +359,7 @@ namespace OIC
             else if (pOwnedDevList.size())
             {
                 OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Found owned devices. Count =%d",
-                        pOwnedDevList.size());
+                        (int)pOwnedDevList.size());
                 ownedDevice = findEnrolleeSecurityResource(pOwnedDevList);
 
                 if (!ownedDevice)