The dest_process parameter of resource_set_cpu_inheritance() and
resource_clear_cpu_inheritance() was char* type.
This patch adds const_cast to apply the type conversion.
Change-Id: I5603435899953e0737f9bbe1c85dce971bc185f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
class CPUInheritance {
public:
CPUInheritance() {
- int ret = resource_set_cpu_inheritance(gettid(), DEST_PROCESS, -1);
+ int ret = resource_set_cpu_inheritance(gettid(),
+ const_cast<char*>(DEST_PROCESS), -1);
if (ret != 0)
_E("resource_set_cpu_inheritance() is failed. error(%d)", ret);
else
~CPUInheritance() {
if (inherited_) {
- int ret = resource_clear_cpu_inheritance(gettid(), DEST_PROCESS);
+ int ret = resource_clear_cpu_inheritance(gettid(),
+ const_cast<char*>(DEST_PROCESS));
if (ret != 0)
_E("resource_clear_cpu_inheritance() is failed. error(%d)", ret);
}