summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2015-01-15 05:21:07 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2015-01-15 08:09:26 (GMT)
commit04fd20f5a06355fc0afe110337ccb9dc7445ad1d (patch)
treed4e723fb9a68f1a75f7bf5a38d6ebb12b43f3a1f
parent4d16440882cdff9a2a73346a2de2a1d2d1bddd36 (diff)
downloadlibdevice-node-tizen_3.0.2014.q4_common.zip
libdevice-node-tizen_3.0.2014.q4_common.tar.gz
libdevice-node-tizen_3.0.2014.q4_common.tar.bz2
A problem of int to pointer cast was raising an error when building for 64 bits archs. Change-Id: I5e9aa7b850370440c11e1c5ee3e58c381a1d71fc Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
-rw-r--r--devices/led.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/devices/led.c b/devices/led.c
index becf30e..faaa2fd 100644
--- a/devices/led.c
+++ b/devices/led.c
@@ -39,7 +39,11 @@ static int led_set_prop(int prop, int val)
case PROP_LED_BRIGHTNESS:
return PLUGIN_SET(leds_torch_brightness, val);
case PROP_LED_IR_COMMAND:
+#if __WORDSIZE == 64
+ return -ENOTSUP;
+#else
return PLUGIN_SET(irled_control, (char*)val);
+#endif
case PROP_LED_HARDKEY:
return PLUGIN_SET(hardkey_backlight, val);
}