don't need sgbuf
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 27 Jun 1989 07:33:11 +0000 (23:33 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 27 Jun 1989 07:33:11 +0000 (23:33 -0800)
SCCS-vsn: bin/ls/ls.c 5.24

usr/src/bin/ls/ls.c

index 5b8bf9a..877cf2d 100644 (file)
@@ -25,7 +25,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #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 <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -68,7 +68,6 @@ main(argc, argv)
        char **argv;
 {
        extern int optind, stat();
        char **argv;
 {
        extern int optind, stat();
-       struct sgttyb sgbuf;
        struct winsize win;
        int ch;
        char *p, *getenv();
        struct winsize win;
        int ch;
        char *p, *getenv();
@@ -82,7 +81,6 @@ main(argc, argv)
         */
        if (isatty(1)) {
                f_nonprint = 1;
         */
        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);
                if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) {
                        if (p = getenv("COLUMNS"))
                                termwidth = atoi(p);