diff --git a/cmds/portmaster-start/install_windows.go b/cmds/portmaster-start/install_windows.go index c0728ad8..5f1d5bb2 100644 --- a/cmds/portmaster-start/install_windows.go +++ b/cmds/portmaster-start/install_windows.go @@ -19,8 +19,6 @@ import ( "golang.org/x/sys/windows/svc/mgr" ) -const exeSuffix = ".exe" - func init() { rootCmd.AddCommand(installCmd) installCmd.AddCommand(installService) diff --git a/cmds/portmaster-start/service_windows.go b/cmds/portmaster-start/service_windows.go index 598d478f..67ebb57c 100644 --- a/cmds/portmaster-start/service_windows.go +++ b/cmds/portmaster-start/service_windows.go @@ -88,7 +88,7 @@ service: return ssec, errno } -func runService(cmd *cobra.Command, opts *Options, cmdArgs []string) error { +func runService(_ *cobra.Command, opts *Options, cmdArgs []string) error { // check if we are running interactively isDebug, err := svc.IsAnInteractiveSession() if err != nil { diff --git a/firewall/interception/nfqexp/nfqexp.go b/firewall/interception/nfqexp/nfqexp.go index 45c358e6..1f17a9f4 100644 --- a/firewall/interception/nfqexp/nfqexp.go +++ b/firewall/interception/nfqexp/nfqexp.go @@ -1,3 +1,5 @@ +// +build linux + // Package nfqexp contains a nfqueue library experiment. package nfqexp diff --git a/firewall/interception/nfqexp/packet.go b/firewall/interception/nfqexp/packet.go index 826ecaca..dcb11fa0 100644 --- a/firewall/interception/nfqexp/packet.go +++ b/firewall/interception/nfqexp/packet.go @@ -1,3 +1,5 @@ +// +build linux + package nfqexp import (