X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/91dfab84182937b62ef64cb12d8e4f89e6d5c3ec..2643ffe04b05bb09eaedbb594191063610a540f6:/lincan/src/fasync.c diff --git a/lincan/src/fasync.c b/lincan/src/fasync.c index bca32e0..c688daa 100644 --- a/lincan/src/fasync.c +++ b/lincan/src/fasync.c @@ -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;