int n,ret;
unsigned long i=0;
+ #ifdef CAN_MSG_VERSION_2
+ struct canmsg_t readmsg={0,0,5,{0,0},0,{0,}};
+ #else /* CAN_MSG_VERSION_2 */
struct canmsg_t readmsg={0,0,5,0,0,{0,}};
+ #endif /* CAN_MSG_VERSION_2 */
struct sigaction act;
while (1) {
readmsg.flags=0;
readmsg.cob=0;
- readmsg.timestamp=0;
#if 1
ret=can_fd_wait(fd, can_wait_sec);
printf("%scan_fd_wait returned %d\n", prt_prefix, ret);