]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/fasync.c
Correction for GCC-2.95.3
[lincan.git] / lincan / src / fasync.c
index bca32e01752657be12ed33634faad766cdd93394..c688daaa877822dc09cc0d6e9889de2fe49dc57c 100644 (file)
@@ -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;