Move copyright link from initscr to newterm (initscr may be not called).
Small cleanup.
This commit is contained in:
parent
5de177eaf6
commit
55ac4c2d5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3479
@ -1,4 +1,4 @@
|
||||
char _ncurses_copyright[] = "\
|
||||
char _ncurses_copyright[] = "\n\
|
||||
/***************************************************************************\n\
|
||||
* COPYRIGHT NOTICE *\n\
|
||||
****************************************************************************\n\
|
||||
|
@ -13,18 +13,14 @@
|
||||
#include <stdlib.h>
|
||||
#include "curses.priv.h"
|
||||
|
||||
extern char _ncurses_copyright[];
|
||||
|
||||
WINDOW *initscr()
|
||||
{
|
||||
char *use_it;
|
||||
#ifdef TRACE
|
||||
_init_trace();
|
||||
|
||||
if (_tracing)
|
||||
_tracef("initscr() called");
|
||||
#endif
|
||||
use_it = _ncurses_copyright;
|
||||
if (newterm(getenv("TERM"), stdout, stdin) == NULL)
|
||||
return NULL;
|
||||
else {
|
||||
|
@ -46,6 +46,8 @@ SCREEN * newterm(char *term, FILE *ofp, FILE *ifp)
|
||||
sigaction_t act;
|
||||
int errret;
|
||||
int stolen, topstolen;
|
||||
extern char _ncurses_copyright[];
|
||||
char *use_it = _ncurses_copyright;
|
||||
|
||||
#ifdef TRACE
|
||||
_init_trace();
|
||||
|
Loading…
Reference in New Issue
Block a user