Codebase list golang-pty / 9cf8a72
Remove uintptr(...) Signed-off-by: Yohei Ueda <yohei@jp.ibm.com> Yohei Ueda 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3131
3232 func ptsname(f *os.File) (string, error) {
3333 var n _C_uint
34 err := ioctl(f.Fd(), uintptr(syscall.TIOCGPTN), uintptr(unsafe.Pointer(&n)))
34 err := ioctl(f.Fd(), syscall.TIOCGPTN, uintptr(unsafe.Pointer(&n)))
3535 if err != nil {
3636 return "", err
3737 }
4141 func unlockpt(f *os.File) error {
4242 var u _C_int
4343 // use TIOCSPTLCK with a zero valued arg to clear the slave pty lock
44 return ioctl(f.Fd(), uintptr(syscall.TIOCSPTLCK), uintptr(unsafe.Pointer(&u)))
44 return ioctl(f.Fd(), syscall.TIOCSPTLCK, uintptr(unsafe.Pointer(&u)))
4545 }