Prechádzať zdrojové kódy

Removes Redundant Type Conversion

Matthew Ellison 8 rokov pred
rodič
commit
c59a2fb87d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      syscalls_linux.go

+ 1 - 1
syscalls_linux.go

@@ -22,7 +22,7 @@ type ifReq struct {
 }
 
 func ioctl(fd uintptr, request int, argp uintptr) error {
-	_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, uintptr(fd), uintptr(request), argp)
+	_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp)
 	if errno != 0 {
 		return os.NewSyscallError("ioctl", errno)
 	}