diff --git a/man7/fanotify.7 b/man7/fanotify.7 index c18ab68ed..c3d40b56d 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -818,7 +818,7 @@ handle_events(int fd) /* Read some events */ - len = read(fd, (void *) &buf, sizeof(buf)); + len = read(fd, buf, sizeof(buf)); if (len == \-1 && errno != EAGAIN) { perror("read"); exit(EXIT_FAILURE); @@ -1111,7 +1111,7 @@ main(int argc, char **argv) /* Read events from the event queue into a buffer */ - len = read(fd, (void *) &events_buf, sizeof(events_buf)); + len = read(fd, events_buf, sizeof(events_buf)); if (len == \-1 && errno != EAGAIN) { perror("read"); exit(EXIT_FAILURE);