X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/3129fcd8094edcb910b708463fdf1a234f11fb55..94b8e4f0425cebad0a186daf054168fa6910f9b8:/lincan/src/read.c diff --git a/lincan/src/read.c b/lincan/src/read.c index 92fcb68..56cb1d5 100644 --- a/lincan/src/read.c +++ b/lincan/src/read.c @@ -7,21 +7,8 @@ * Version lincan-0.2 9 Jul 2003 */ -#define __NO_VERSION__ -#include - -#include - -#include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) -#include -#else -#include -#endif -#include -#include -#include - +#include "../include/can.h" +#include "../include/can_sysdep.h" #include "../include/main.h" #include "../include/read.h" #include "../include/ioctl.h" @@ -152,11 +139,6 @@ ssize_t can_read(struct file *file, char *buffer, size_t length, loff_t *offset) DEBUGMSG("this will always return zero.\n"); return 0; } - if (length > 8 * sizeof(struct canmsg_t)) { - DEBUGMSG("Reading more than 8 CAN messages, this is not supported.\n"); - DEBUGMSG("Defaulting to 8 messages.\n"); - length = 8 * sizeof(struct canmsg_t); - } /* Initialize hardware pointers */ obj = canuser->msgobj; if (obj == NULL) {