From: Keith Bostic Date: Tue, 27 Jun 1989 07:33:11 +0000 (-0800) Subject: don't need sgbuf X-Git-Tag: BSD-4_3_Reno-Snapshot-Development~6048 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/d60b805329f6105348ee85eef659849e3f276bda don't need sgbuf SCCS-vsn: bin/ls/ls.c 5.24 --- diff --git a/usr/src/bin/ls/ls.c b/usr/src/bin/ls/ls.c index 5b8bf9a485..877cf2dc82 100644 --- a/usr/src/bin/ls/ls.c +++ b/usr/src/bin/ls/ls.c @@ -25,7 +25,7 @@ char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)ls.c 5.23 (Berkeley) %G%"; +static char sccsid[] = "@(#)ls.c 5.24 (Berkeley) %G%"; #endif /* not lint */ #include @@ -68,7 +68,6 @@ main(argc, argv) char **argv; { extern int optind, stat(); - struct sgttyb sgbuf; struct winsize win; int ch; char *p, *getenv(); @@ -82,7 +81,6 @@ main(argc, argv) */ if (isatty(1)) { f_nonprint = 1; - (void)ioctl(1, TIOCGETP, &sgbuf); if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) { if (p = getenv("COLUMNS")) termwidth = atoi(p);