OSDN Git Service
(root)
/
android-x86
/
hardware-intel-libsensors.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build for x86_64
[android-x86/hardware-intel-libsensors.git]
/
control.c
diff --git
a/control.c
b/control.c
index
d8856c7
..
cab80b4
100644
(file)
--- a/
control.c
+++ b/
control.c
@@
-340,7
+340,7
@@
static void* acquisition_routine (void* param)
* Bionic does not provide pthread_cancel / pthread_testcancel...
*/
* Bionic does not provide pthread_cancel / pthread_testcancel...
*/
- int s = (int) param;
+ int s = (int)
(size_t)
param;
int num_fields;
struct sensors_event_t data = {0};
int c;
int num_fields;
struct sensors_event_t data = {0};
int c;
@@
-456,7
+456,7
@@
static void start_acquisition_thread (int s)
ret = pthread_create( &sensor_info[s].acquisition_thread,
NULL,
acquisition_routine,
ret = pthread_create( &sensor_info[s].acquisition_thread,
NULL,
acquisition_routine,
- (void*) s);
+ (void*)
(size_t)
s);
}
}