summaryrefslogtreecommitdiffhomepage
path: root/app/tools/libwg-go/src/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-06 15:43:09 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-06 15:43:09 +0100
commit6e6be3a326c848de4c321fe8e74c35cf21f6e194 (patch)
tree1cc9fa58eeb975d8eb5ec961145a213de0aefe08 /app/tools/libwg-go/src/tun
parent37bb827026f9d695a9a37d7e3b1768050a5522f9 (diff)
libwg-go: do not mix C style and Go style variable names
Diffstat (limited to 'app/tools/libwg-go/src/tun')
-rw-r--r--app/tools/libwg-go/src/tun/api-android.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/tools/libwg-go/src/tun/api-android.go b/app/tools/libwg-go/src/tun/api-android.go
index 4f0dd968..ddc5d117 100644
--- a/app/tools/libwg-go/src/tun/api-android.go
+++ b/app/tools/libwg-go/src/tun/api-android.go
@@ -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
}