From affaa7322ae36ff75c7020c48e8718d35aa2c039 Mon Sep 17 00:00:00 2001 From: yinheli Date: Tue, 19 Sep 2017 15:55:00 +0800 Subject: [PATCH] use uintptr instand of uint thanks @songgao --- syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls_linux.go b/syscalls_linux.go index 4bc8e2f..cda8074 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 uint, 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)