Fixing broken TB stack due to compilation errors for Arduino platforms.
authorSachin Agrawal <sachin.agrawal@intel.com>
Fri, 5 Sep 2014 01:27:02 +0000 (18:27 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Fri, 5 Sep 2014 01:27:02 +0000 (18:27 -0700)
Change-Id: Id211b8f03ddb07dd8c50148ece513bd2548b447f

csdk/occoap/src/occoap.c
csdk/stack/src/ocstack.c

index 018d840..33a8219 100644 (file)
@@ -578,7 +578,7 @@ OCStackResult OCDoCoAPResource(OCMethod method, OCQualityOfService qos, OCCoAPTo
         }
 
         VERIFY_SUCCESS(FormOptionList(&optList, NULL, NULL, 0, NULL,
-                &uri.port, uri.path.length, uri.path.s, uri.query.length,
+                (uint16_t*)&uri.port, uri.path.length, uri.path.s, uri.query.length,
                 uri.query.s), OC_STACK_OK);
 
         OC_LOG_V(DEBUG, TAG, "uri.host.s %s", uri.host.s);
index fdedd1e..dfc07fd 100644 (file)
@@ -1350,11 +1350,11 @@ OCStackResult OCChangeResourceProperty(OCResourceProperty * inputProperty,
     }
     if(!enable)
     {
-        *inputProperty = *inputProperty & ~(resourceProperties);
+        *inputProperty = (OCResourceProperty) (*inputProperty & ~(resourceProperties));
     }
     else
     {
-        *inputProperty = *inputProperty | resourceProperties;
+        *inputProperty = (OCResourceProperty) (*inputProperty | resourceProperties);
     }
     return OC_STACK_OK;
 }