}
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);
}
if(!enable)
{
- *inputProperty = *inputProperty & ~(resourceProperties);
+ *inputProperty = (OCResourceProperty) (*inputProperty & ~(resourceProperties));
}
else
{
- *inputProperty = *inputProperty | resourceProperties;
+ *inputProperty = (OCResourceProperty) (*inputProperty | resourceProperties);
}
return OC_STACK_OK;
}