diff options
Diffstat (limited to 'libcons/file-changed.c')
-rw-r--r-- | libcons/file-changed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libcons/file-changed.c b/libcons/file-changed.c index a681d626..9d7a066b 100644 --- a/libcons/file-changed.c +++ b/libcons/file-changed.c @@ -30,13 +30,11 @@ cons_S_file_changed (cons_notify_t notify, natural_t tickno, off_t start, off_t end) { error_t err = 0; - vcons_t vcons; + vcons_t vcons = (vcons_t) notify; - if (!notify || !notify->vcons) + if (!notify || notify->cons) return EOPNOTSUPP; - vcons = notify->vcons; - mutex_lock (&vcons->lock); switch (change) { |