main
zimbatm 2 years ago
parent 2afab6a7ba
commit f1df228d66
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

@ -46,7 +46,7 @@ func readEvents(inotifyFd int, events chan string) {
continue
}
var offset uint32
for offset + syscall.SizeofInotifyEvent <= uint32(n) {
for offset+syscall.SizeofInotifyEvent <= uint32(n) {
// Point "raw" to the event in the buffer
raw := (*syscall.InotifyEvent)(unsafe.Pointer(&buf[offset]))

Loading…
Cancel
Save