]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/fasync.c
LinCAN version updated to 0.3
[lincan.git] / lincan / src / fasync.c
index bca32e01752657be12ed33634faad766cdd93394..0bcdc5fff471b297141ad06bbf92e13eb9cb5f36 100644 (file)
@@ -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;