X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/f419961de4a8e818c602b0642492ce76dd5bf979..HEAD:/lincan/src/fasync.c diff --git a/lincan/src/fasync.c b/lincan/src/fasync.c index 1773424..abeb9fc 100644 --- a/lincan/src/fasync.c +++ b/lincan/src/fasync.c @@ -42,15 +42,15 @@ 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; - + if(!canuser || (canuser->magic != CAN_USER_MAGIC)){ CANMSG("can_close: bad canuser magic\n"); return -ENODEV; } - + qends = canuser->qends; retval = fasync_helper(fd, file, on, &qends->endinfo.fileinfo.fasync);