X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=ncurses%2Fbase%2Flib_restart.c;fp=ncurses%2Fbase%2Flib_restart.c;h=31da4b7cb897271672e696cee4160a8a25760389;hb=46722468f47c2b77b3987729b4bcf2321cccfd01;hp=831e3255d8420e4f456f75de89963910db61d42a;hpb=c633e5103a29a38532cf1925257b91cea33fd090;p=ncurses.git diff --git a/ncurses/base/lib_restart.c b/ncurses/base/lib_restart.c index 831e3255..31da4b7c 100644 --- a/ncurses/base/lib_restart.c +++ b/ncurses/base/lib_restart.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998,2000 Free Software Foundation, Inc. * + * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -47,9 +47,9 @@ #include /* lines, columns, cur_term */ -MODULE_ID("$Id: lib_restart.c,v 1.3 2000/09/02 18:09:44 tom Exp $") +MODULE_ID("$Id: lib_restart.c,v 1.5 2002/08/31 22:30:10 Philippe.Blain Exp $") -int +NCURSES_EXPORT(int) restartterm(NCURSES_CONST char *termp, int filenum, int *errret) { int saveecho = SP->_echo; @@ -59,7 +59,8 @@ restartterm(NCURSES_CONST char *termp, int filenum, int *errret) T((T_CALLED("restartterm(%s,%d,%p)"), termp, filenum, errret)); - setupterm(termp, filenum, errret); + if (setupterm(termp, filenum, errret) != OK) + returnCode(ERR); if (saveecho) echo();