Add errret param to other calls to setupterm

This commit is contained in:
ridiculousfish 2013-05-13 01:41:50 -07:00
parent 22d1aaa27d
commit c80bd104d2
2 changed files with 4 additions and 3 deletions

View file

@ -1069,8 +1069,8 @@ static void init(int mangle_descriptors, int out)
exit(1);
}
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
int errret;
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
{
debug(0, _(L"Could not set up terminal"));
exit(1);

View file

@ -336,7 +336,8 @@ int input_init()
input_common_init(&interrupt_handler);
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
int errret;
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
{
debug(0, _(L"Could not set up terminal"));
exit_without_destructors(1);