Home GnuPG

curses: Fix build with ncurses 6.2

Description

curses: Fix build with ncurses 6.2

* pinentry/pinentry-curses.c (curses_cmd_handler): Use
renamed variable.
* pinentry/pinentry.c (pinentry_reset, pinentry_parse_opts)
(option_handler, cmd_getinfo) Use renamed variable.
* pinentry/pinentry.h (struct pinentry): Rename ttytype to
ttytype_l.

This fixes the build with ncurses 6.2 which defines ttytpe
as a preprocessor variable.

To avoid problems with that we don't use that name as a
variable anymore.