summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunfeng Dong <junfeng.dong@intel.com>2013-03-25 19:43:12 +0800
committerlifang <fangx.li@intel.com>2013-03-29 05:20:58 +0800
commitdf14a3d94e2ec1681d1656dc4263791b24b3870a (patch)
treeef34aecb70cc30fd5381f98c0f8c8223a17f0d32 /src
parentfe586d36916373dd4cd5b3e90207cc5f26c64091 (diff)
downloadlibslp-sensor-df14a3d94e2ec1681d1656dc4263791b24b3870a.tar.gz
libslp-sensor-df14a3d94e2ec1681d1656dc4263791b24b3870a.tar.bz2
libslp-sensor-df14a3d94e2ec1681d1656dc4263791b24b3870a.zip
Fix for 64 bit compatibility.
- Use %cmake macro to set default path - Fix hard-coded library path - Fix the wrong cast between int and pointer. Change-Id: I4c0636e5e2e30f07f72aea9063de06d588bef901
Diffstat (limited to 'src')
-rwxr-xr-xsrc/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index f3fc816..004890b 100755
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -556,7 +556,7 @@ void lcd_off_set_wake_up(keynode_t *node, void *data)
static void sensor_changed_cb(keynode_t *node, void *data)
{
- int event_number = (int)(data);
+ signed long event_number = (signed long)(data);
unsigned int i = 0;
int val;
int cb_number = 0;