X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/91dfab84182937b62ef64cb12d8e4f89e6d5c3ec..a412b1335a9906e768eeaf41473fe90193c435ab:/lincan/src/fasync.c diff --git a/lincan/src/fasync.c b/lincan/src/fasync.c index bca32e0..0bcdc5f 100644 --- a/lincan/src/fasync.c +++ b/lincan/src/fasync.c @@ -4,7 +4,7 @@ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ #include "../include/can.h" @@ -16,6 +16,8 @@ int can_fasync(int fd, struct file *file, int on) { + int retval; + struct canuser_t *canuser = (struct canuser_t*)(file->private_data); struct canque_ends_t *qends; @@ -26,7 +28,7 @@ int can_fasync(int fd, struct file *file, int on) qends = canuser->qends; - int retval = fasync_helper(fd, file, on, &qends->endinfo.fileinfo.fasync); + retval = fasync_helper(fd, file, on, &qends->endinfo.fileinfo.fasync); if (retval < 0) return retval;