From 9e0846e8a4beebff36c72f03479a7db775b5144e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 7 May 2018 17:59:06 +0200 Subject: all: get rid of underscores in identifiers Underscores are against Go coding style. Update #538 --- vm/vmimpl/console.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm/vmimpl/console.go') diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go index 07c9b9d27..cd47a43bc 100644 --- a/vm/vmimpl/console.go +++ b/vm/vmimpl/console.go @@ -27,12 +27,12 @@ func OpenConsole(con string) (rc io.ReadCloser, err error) { } }() var term unix.Termios - _, _, errno := syscall.Syscall(unix.SYS_IOCTL, uintptr(fd), syscall_TCGETS, uintptr(unsafe.Pointer(&term))) + _, _, errno := syscall.Syscall(unix.SYS_IOCTL, uintptr(fd), syscallTCGETS, uintptr(unsafe.Pointer(&term))) if errno != 0 { return nil, fmt.Errorf("failed to get console termios: %v", errno) } // no parity bit, only need 1 stop bit, no hardware flowcontrol - term.Cflag &^= unix_CBAUD | unix.CSIZE | unix.PARENB | unix.CSTOPB | unix_CRTSCTS + term.Cflag &^= unixCBAUD | unix.CSIZE | unix.PARENB | unix.CSTOPB | unixCRTSCTS // ignore modem controls term.Cflag |= unix.B115200 | unix.CS8 | unix.CLOCAL | unix.CREAD // setup for non-canonical mode @@ -42,7 +42,7 @@ func OpenConsole(con string) (rc io.ReadCloser, err error) { term.Oflag &^= unix.OPOST term.Cc[unix.VMIN] = 0 term.Cc[unix.VTIME] = 10 // 1 second timeout - _, _, errno = syscall.Syscall(unix.SYS_IOCTL, uintptr(fd), syscall_TCSETS, uintptr(unsafe.Pointer(&term))) + _, _, errno = syscall.Syscall(unix.SYS_IOCTL, uintptr(fd), syscallTCSETS, uintptr(unsafe.Pointer(&term))) if errno != 0 { return nil, fmt.Errorf("failed to get console termios: %v", errno) } -- cgit mrf-deployment