libwg-go: do not mix C style and Go style variable names

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2018-11-06 15:43:09 +01:00
parent e7fd53b809
commit 3eb6c91c9e
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -10,8 +10,8 @@ import (
"os"
)
func CreateTUNFromFD(tun_fd int) (TUNDevice, string, error) {
file := os.NewFile(uintptr(tun_fd), "/dev/tun")
func CreateTUNFromFD(tunFd int) (TUNDevice, string, error) {
file := os.NewFile(uintptr(tunFd), "/dev/tun")
tun := &nativeTun{
tunFile: file,
fd: file.Fd(),
@@ -20,7 +20,7 @@ func CreateTUNFromFD(tun_fd int) (TUNDevice, string, error) {
nopi: true,
}
var err error
tun.fdCancel, err = rwcancel.NewRWCancel(tun_fd)
tun.fdCancel, err = rwcancel.NewRWCancel(tunFd)
if err != nil {
return nil, "", err
}