From 3bf927352fffeb5e6ae4735aa160cc4e5491b5ce Mon Sep 17 00:00:00 2001 From: jb Date: Mon, 24 May 1999 01:15:28 +0000 Subject: Remove the static declaration from the line[] variable to allow openpty() to be called from a threaded application. --- lib/libutil/pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libutil') diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c index 839c1b7..18b7349 100644 --- a/lib/libutil/pty.c +++ b/lib/libutil/pty.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94"; #else static const char rcsid[] = - "$Id: pty.c,v 1.7 1997/08/13 20:42:18 steve Exp $"; + "$Id: pty.c,v 1.8 1998/10/09 11:24:20 jkh Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -60,7 +60,7 @@ openpty(amaster, aslave, name, termp, winp) struct termios *termp; struct winsize *winp; { - static char line[] = "/dev/ptyXX"; + char line[] = "/dev/ptyXX"; register const char *cp1, *cp2; register int master, slave, ttygid; struct group *gr; -- cgit v1.1