mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-13 19:02:06 +02:00
move TtyName inside function
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
@@ -60,8 +60,6 @@
|
||||
#define PTYRANGE1 "0123456789abcdef"
|
||||
#endif
|
||||
|
||||
static char TtyName[32];
|
||||
|
||||
int pty_preopen = 0;
|
||||
|
||||
/*
|
||||
@@ -76,7 +74,9 @@ int pty_preopen = 0;
|
||||
|
||||
int OpenPTY(char **ttyn)
|
||||
{
|
||||
static char TtyName[32];
|
||||
int f, s;
|
||||
|
||||
if (openpty(&f, &s, TtyName, NULL, NULL) != 0)
|
||||
return -1;
|
||||
close(s);
|
||||
|
||||
Reference in New Issue
Block a user