Be consistent on exiting curses mode

This commit is contained in:
lostd 2014-10-07 20:59:41 +03:00
parent 10d2d18cb2
commit 1475ebbf9a

View file

@ -138,7 +138,7 @@ printwarn(void)
void
printerr(int ret, char *prefix)
{
endwin();
exitcurses();
printf("%s: %s\n", prefix, strerror(errno));
exit(ret);
}