Subject: bin/23966: remove unused code from cat.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 01/04/2004 02:40:21
>Number:         23966
>Category:       bin
>Synopsis:       remove unused code from cat.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 04 02:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Ito
>Release:        1.6ZG
>Organization:
>Environment:
NetBSD 1.6ZG Fri Dec  5 15:13:48 EST 2003
>Description:
when printescaped() functionality was backed out in revision 1.41 some code was left behind (original import of printescaped() in 1.36)
>How-To-Repeat:
N/A
>Fix:
Index: cat.c
===================================================================
RCS file: /cvs/nbsd/src/bin/cat/cat.c,v
retrieving revision 1.42
diff -u -r1.42 cat.c
--- cat.c       27 Oct 2003 00:12:41 -0000      1.42
+++ cat.c       4 Jan 2004 02:33:08 -0000
@@ -60,9 +60,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <vis.h>
 
-int bflag, eflag, fflag, lflag, nflag, sflag, stdout_ok, tflag, vflag;
+int bflag, eflag, fflag, lflag, nflag, sflag, tflag, vflag;
 int rval;
 const char *filename;
 
@@ -118,8 +117,6 @@
                        /* NOTREACHED */
                }
        argv += optind;
-
-       stdout_ok = isatty(STDOUT_FILENO);
 
        if (lflag) {
                stdout_lock.l_len = 0;

>Release-Note:
>Audit-Trail:
>Unformatted: