This commit is contained in:
Kovid Goyal
2022-08-22 21:21:56 +05:30
parent 246277e7af
commit cf287015de
2 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ func Tcgetattr(fd int, argp *unix.Termios) error {
}
func Tcsetattr(fd int, action uintptr, argp *unix.Termios) error {
var request uintptr
var request uint
switch action {
case TCSANOW:
request = TCSETS
@@ -32,5 +32,5 @@ func Tcsetattr(fd int, action uintptr, argp *unix.Termios) error {
default:
return unix.EINVAL
}
return unix.IoctlSetTermios(int(fd), uint(request), argp)
return unix.IoctlSetTermios(fd, request, argp)
}