summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsensors/akm8975.c2
-rw-r--r--libsensors/input.c4
-rw-r--r--libsensors/lsm330dlc_acceleration.c2
-rw-r--r--libsensors/smdk4x12_sensors.h4
4 files changed, 6 insertions, 6 deletions
diff --git a/libsensors/akm8975.c b/libsensors/akm8975.c
index 8de0215..ca85518 100644
--- a/libsensors/akm8975.c
+++ b/libsensors/akm8975.c
@@ -168,7 +168,7 @@ void *akm8975_thread(void *thread_data)
char i2c_data[SENSOR_DATA_SIZE] = { 0 };
short magnetic_data[3];
short mode;
- long int before, after;
+ long long int before, after;
int diff;
int device_fd;
int uinput_fd;
diff --git a/libsensors/input.c b/libsensors/input.c
index cdd82c9..d78dc64 100644
--- a/libsensors/input.c
+++ b/libsensors/input.c
@@ -44,7 +44,7 @@ void input_event_set(struct input_event *event, int type, int code, int value)
gettimeofday(&event->time, NULL);
}
-long int timestamp(struct timeval *time)
+long long int timestamp(struct timeval *time)
{
if (time == NULL)
return -1;
@@ -52,7 +52,7 @@ long int timestamp(struct timeval *time)
return time->tv_sec * 1000000000LL + time->tv_usec * 1000;
}
-long int input_timestamp(struct input_event *event)
+long long int input_timestamp(struct input_event *event)
{
if (event == NULL)
return -1;
diff --git a/libsensors/lsm330dlc_acceleration.c b/libsensors/lsm330dlc_acceleration.c
index 2483cf8..5782d57 100644
--- a/libsensors/lsm330dlc_acceleration.c
+++ b/libsensors/lsm330dlc_acceleration.c
@@ -49,7 +49,7 @@ void *lsm330dlc_acceleration_thread(void *thread_data)
struct input_event event;
struct timeval time;
struct lsm330dlc_acc acceleration_data;
- long int before, after;
+ long long int before, after;
int diff;
int device_fd;
int uinput_fd;
diff --git a/libsensors/smdk4x12_sensors.h b/libsensors/smdk4x12_sensors.h
index 984834a..3a4d31f 100644
--- a/libsensors/smdk4x12_sensors.h
+++ b/libsensors/smdk4x12_sensors.h
@@ -76,8 +76,8 @@ int smdk4x12_sensors_poll(struct sensors_poll_device_t *dev,
*/
void input_event_set(struct input_event *event, int type, int code, int value);
-long int timestamp(struct timeval *time);
-long int input_timestamp(struct input_event *event);
+long long int timestamp(struct timeval *time);
+long long int input_timestamp(struct input_event *event);
int uinput_rel_create(const char *name);
void uinput_destroy(int uinput_fd);
int input_open(char *name);