Skip to content

Commit dc7e2bb

Browse files
committed
Fix compilation
1 parent 13ecdea commit dc7e2bb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

core/src/main/c/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ int connect_can_socket(int sock, uint32_t interface, uint32_t rx, uint32_t tx) {
6767
int set_timeout(int sock, int type, uint64_t seconds, uint64_t nanos) {
6868
socklen_t timeout_len = sizeof(struct timeval);
6969
struct timeval timeout;
70-
timeout.tv_sec = (__time_t) seconds;
71-
timeout.tv_usec = (__suseconds_t) nanos / 1000;
70+
timeout.tv_sec = (time_t) seconds;
71+
timeout.tv_usec = (suseconds_t) nanos / 1000;
7272

7373
return setsockopt(sock, SOL_SOCKET, type, &timeout, timeout_len);
7474
}

core/src/main/c/javacan_socketcan.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*/
2323
#include "common.h"
2424
#include <javacan-core/jni-c-to-java.h>
25-
#include <jni.h>
2625
#include <linux/can.h>
2726
#include <linux/can/isotp.h>
2827
#include <linux/can/raw.h>

0 commit comments

Comments
 (0)