diff options
author | jb <jb@FreeBSD.org> | 1999-05-24 01:15:28 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1999-05-24 01:15:28 +0000 |
commit | 3bf927352fffeb5e6ae4735aa160cc4e5491b5ce (patch) | |
tree | 967c6baf9216d7cac8f8903954ecedbacf54181e /lib/libutil | |
parent | 4454c28c9e7cf349d5f0304c80941e33d608a51f (diff) | |
download | FreeBSD-src-3bf927352fffeb5e6ae4735aa160cc4e5491b5ce.zip FreeBSD-src-3bf927352fffeb5e6ae4735aa160cc4e5491b5ce.tar.gz |
Remove the static declaration from the line[] variable to allow
openpty() to be called from a threaded application.
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/pty.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |