diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 26d5e86..42bb3e8 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -7,3 +7,4 @@ Lucus Lee Arroyo Networks, LLC Tony Lu ajee cai +yinheli \ No newline at end of file diff --git a/syscalls_linux.go b/syscalls_linux.go index 27df21c..502c5a2 100644 --- a/syscalls_linux.go +++ b/syscalls_linux.go @@ -22,7 +22,7 @@ type ifReq struct { pad [0x28 - 0x10 - 2]byte } -func ioctl(fd uintptr, request int, argp uintptr) error { +func ioctl(fd uintptr, request uintptr, argp uintptr) error { _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp) if errno != 0 { return os.NewSyscallError("ioctl", errno)