mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
use uintptr instand of uint
thanks @songgao
This commit is contained in:
parent
deffbe3fa6
commit
affaa7322a
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ type ifReq struct {
|
||||||
pad [0x28 - 0x10 - 2]byte
|
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)
|
_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp)
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
return os.NewSyscallError("ioctl", errno)
|
return os.NewSyscallError("ioctl", errno)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue