kqueue: EventInfo().Sys() returns now pointer.

This commit is contained in:
Paweł Błaszczyk
2015-02-17 19:16:56 +01:00
parent 6254af336c
commit d4383da2ae
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func (e Event) String() string {
// http://man7.org/linux/man-pages/man7/inotify.7.html
//
// Under Darwin, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD (kqueue) Sys() always
// returns notify.Kevent value, which is defined as:
// returns a non-nil *notify.Kevent value, which is defined as:
//
// type Kevent struct {
// Kevent *syscall.Kevent_t // Kevent is a kqueue specific structure.
+2 -2
View File
@@ -84,10 +84,10 @@ func (e *event) Event() Event { return e.e }
func (e *event) Path() string { return e.p }
// Sys returns platform specific object describing reported event.
func (e *event) Sys() interface{} { return e.kq }
func (e *event) Sys() interface{} { return &e.kq }
func isdir(ei EventInfo) (bool, error) {
return ei.Sys().(Kevent).FI.IsDir(), nil
return ei.Sys().(*Kevent).FI.IsDir(), nil
}
// Kevent represents a single event.