diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-06 23:00:15 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-06 23:00:15 +0200 |
commit | eaf17becfa70c31bcfb6f195e8d68cb5b720ec4a (patch) | |
tree | 09d1831e80468dd1703c174784d19c8697538fd7 /tun/wintun/wintun_windows.go | |
parent | 6d8b68c8f3cd7c9e9560c23e5f20e3ec4bc4fb6e (diff) |
global: fixup TODO comment spacing
Diffstat (limited to 'tun/wintun/wintun_windows.go')
-rw-r--r-- | tun/wintun/wintun_windows.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go index ac811af..ec7f8ea 100644 --- a/tun/wintun/wintun_windows.go +++ b/tun/wintun/wintun_windows.go @@ -122,7 +122,7 @@ func GetInterface(ifname string, hwndParent uintptr) (*Wintun, error) { continue } - //TODO: is there a better way than comparing ifnames? + // TODO: is there a better way than comparing ifnames? // Get interface name. ifname2, err := wintun.InterfaceName() if err != nil { @@ -225,7 +225,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err // Search for the driver. const driverType = setupapi.SPDIT_COMPATDRIVER - err = devInfoList.BuildDriverInfoList(deviceData, driverType) //TODO: This takes ~510ms + err = devInfoList.BuildDriverInfoList(deviceData, driverType) // TODO: This takes ~510ms if err != nil { return nil, false, fmt.Errorf("SetupDiBuildDriverInfoList failed: %v", err) } @@ -233,7 +233,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err driverDate := windows.Filetime{} driverVersion := uint64(0) - for index := 0; ; index++ { //TODO: This loop takes ~600ms + for index := 0; ; index++ { // TODO: This loop takes ~600ms // Get a driver from the list. driverData, err := devInfoList.EnumDriverInfo(deviceData, driverType, index) if err != nil { @@ -572,7 +572,7 @@ func (wintun *Wintun) deviceData(hwndParent uintptr) (setupapi.DevInfo, *setupap } // Get interface ID. - //TODO: Store some ID in the Wintun object such that this call isn't required. + // TODO: Store some ID in the Wintun object such that this call isn't required. wintun2, err := makeWintun(devInfoList, deviceData) if err != nil { continue |