Subject: bin/23967: remove unsed code from chio.c and chmod.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 01/04/2004 03:00:35
>Number:         23967
>Category:       bin
>Synopsis:       remove unsed code from chio.c and chmod.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 03:01: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:
as in bin/23966
when printescaped() functionality was backed out, some unneeded code remained
>How-To-Repeat:
N/A
>Fix:
Index: chio.c
===================================================================
RCS file: /cvs/nbsd/src/bin/chio/chio.c,v
retrieving revision 1.22
diff -u -r1.22 chio.c
--- chio.c      14 Sep 2003 19:20:17 -0000      1.22
+++ chio.c      4 Jan 2004 02:46:40 -0000
@@ -63,13 +63,10 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <vis.h>
 
 #include "defs.h"
 #include "pathnames.h"
 
-int stdout_ok;
-
 int main(int, char *[]);
 static void usage(void);
 static void cleanup(void);
@@ -166,8 +163,6 @@
        if (argc == 0)
                usage();
                /* NOTREACHED */
-
-       stdout_ok = isatty(STDOUT_FILENO);
 
        /* Get the default changer if not already specified. */
        if (changer_name == NULL)
Index: chmod.c
===================================================================
RCS file: /cvs/nbsd/src/bin/chmod/chmod.c,v
retrieving revision 1.31
diff -u -r1.31 chmod.c
--- chmod.c     14 Sep 2003 19:20:17 -0000      1.31
+++ chmod.c     4 Jan 2004 02:48:37 -0000
@@ -57,9 +57,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <vis.h>
-
-int stdout_ok;
 
 int    main(int, char *[]);
 void   usage(void);
@@ -130,8 +127,6 @@
 
        if (argc < 2)
                usage();
-
-       stdout_ok = isatty(STDOUT_FILENO);
 
        fts_options = FTS_PHYSICAL;
        if (Rflag) {

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