aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 04:13:43 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 05:05:02 +0100
commit12395d994ce1a83b8f3feb8b95c8c610b1f76890 (patch)
tree1e65d49b16732596434901ce42d4d69c8c3c3ea9 /main.go
parenttunnel: simplify shutdown (diff)
downloadwireguard-windows-12395d994ce1a83b8f3feb8b95c8c610b1f76890.tar.xz
wireguard-windows-12395d994ce1a83b8f3feb8b95c8c610b1f76890.zip
tunnel: do not rely on submodule
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.go b/main.go
index 58526681..d246e019 100644
--- a/main.go
+++ b/main.go
@@ -33,14 +33,13 @@ func fatal(v ...interface{}) {
messageBoxEx(0, windows.StringToUTF16Ptr(fmt.Sprint(v...)), windows.StringToUTF16Ptr("Error"), 0x00000010, 0)
}
-
func usage() {
builder := strings.Builder{}
for _, flag := range flags {
builder.WriteString(fmt.Sprintf(" %s\n", flag))
}
msg := fmt.Sprintf("Usage: %s [\n%s]", os.Args[0], builder.String())
- messageBoxEx(0, windows.StringToUTF16Ptr(msg), windows.StringToUTF16Ptr("Command Line Options"), 0x00000040, 0)
+ messageBoxEx(0, windows.StringToUTF16Ptr(msg), windows.StringToUTF16Ptr("Command Line Options"), 0x00000040, 0)
os.Exit(1)
}