Hopefully fixes many Coverity issues.
Follow-up for 00adc340bb. This fixes the wrong "Received invalid inotify event, ignoring." warnings caused by the missing curly brackets and the priorities of `&&` and `?:`. This also replaces the ternary operators with `||`.
00adc340bb
This also makes the macro check if the event is actually in the buffer, and if it is not, then log about that and finish the loop.