lncli: fix windows compilation

This commit is contained in:
Oliver Gugger 2020-03-11 09:15:04 +01:00
parent 3b8dd4bd63
commit f55860ccd8
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -1807,7 +1807,11 @@ func unlock(ctx *cli.Context) error {
// lncli.
default:
fmt.Printf("Input wallet password: ")
pw, err = terminal.ReadPassword(syscall.Stdin)
// The variable syscall.Stdin is of a different type in the
// Windows API that's why we need the explicit cast. And of
// course the linter doesn't like it either.
pw, err = terminal.ReadPassword(int(syscall.Stdin)) // nolint:unconvert
fmt.Println()
}
if err != nil {