From 6199af0e8b8e4cc79a4d37a6c97aa1daf661839f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 14 May 2019 11:33:51 +0200 Subject: global: use tab after //sys --- conf/dnsresolver_windows.go | 4 ++-- conf/dpapi/dpapi_windows.go | 4 ++-- conf/path_windows.go | 4 ++-- conf/storewatcher_windows.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'conf') diff --git a/conf/dnsresolver_windows.go b/conf/dnsresolver_windows.go index 165baf3e..3157a878 100644 --- a/conf/dnsresolver_windows.go +++ b/conf/dnsresolver_windows.go @@ -16,8 +16,8 @@ import ( "golang.org/x/sys/windows" ) -//sys internetGetConnectedState(flags *uint32, reserved uint32) (connected bool) = wininet.InternetGetConnectedState -//sys getTickCount64() (ms uint64) = kernel32.GetTickCount64 +//sys internetGetConnectedState(flags *uint32, reserved uint32) (connected bool) = wininet.InternetGetConnectedState +//sys getTickCount64() (ms uint64) = kernel32.GetTickCount64 func resolveHostname(name string) (resolvedIpString string, err error) { const maxTries = 10 diff --git a/conf/dpapi/dpapi_windows.go b/conf/dpapi/dpapi_windows.go index 05074717..851ec1ee 100644 --- a/conf/dpapi/dpapi_windows.go +++ b/conf/dpapi/dpapi_windows.go @@ -37,7 +37,7 @@ func bytesToBlob(bytes []byte) *dpBlob { return blob } -//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData +//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData func Encrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} @@ -58,7 +58,7 @@ func Encrypt(data []byte, name string) ([]byte, error) { return ret, nil } -//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData +//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData func Decrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} diff --git a/conf/path_windows.go b/conf/path_windows.go index 1345db14..34e189b2 100644 --- a/conf/path_windows.go +++ b/conf/path_windows.go @@ -14,8 +14,8 @@ import ( "golang.org/x/sys/windows" ) -//sys coTaskMemFree(pointer uintptr) = ole32.CoTaskMemFree -//sys shGetKnownFolderPath(id *windows.GUID, flags uint32, token windows.Handle, path **uint16) (err error) [failretval!=0] = shell32.SHGetKnownFolderPath +//sys coTaskMemFree(pointer uintptr) = ole32.CoTaskMemFree +//sys shGetKnownFolderPath(id *windows.GUID, flags uint32, token windows.Handle, path **uint16) (err error) [failretval!=0] = shell32.SHGetKnownFolderPath var folderIDLocalAppData = windows.GUID{0xf1b32785, 0x6fba, 0x4fcf, [8]byte{0x9d, 0x55, 0x7b, 0x8e, 0x7f, 0x15, 0x70, 0x91}} const kfFlagCreate = 0x00008000 diff --git a/conf/storewatcher_windows.go b/conf/storewatcher_windows.go index 26e94cd2..f5cbb553 100644 --- a/conf/storewatcher_windows.go +++ b/conf/storewatcher_windows.go @@ -22,8 +22,8 @@ const ( fncSECURITY uint32 = 0x00000100 ) -//sys findFirstChangeNotification(path *uint16, watchSubtree bool, filter uint32) (handle windows.Handle, err error) = kernel32.FindFirstChangeNotificationW -//sys findNextChangeNotification(handle windows.Handle) (err error) = kernel32.FindNextChangeNotification +//sys findFirstChangeNotification(path *uint16, watchSubtree bool, filter uint32) (handle windows.Handle, err error) = kernel32.FindFirstChangeNotificationW +//sys findNextChangeNotification(handle windows.Handle) (err error) = kernel32.FindNextChangeNotification var haveStartedWatchingConfigDir bool -- cgit v1.2.3-59-g8ed1b