Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/echo Remove unused variable stdout_ok, which was left ov...



details:   https://anonhg.NetBSD.org/src/rev/e4c6e59bb948
branches:  trunk
changeset: 555672:e4c6e59bb948
user:      jschauma <jschauma%NetBSD.org@localhost>
date:      Mon Nov 24 22:38:46 2003 +0000

description:
Remove unused variable stdout_ok, which was left over from my changes
in September.  Pointed out by Mike Small in a private email.

diffstat:

 bin/echo/echo.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 997f59aaf0fb -r e4c6e59bb948 bin/echo/echo.c
--- a/bin/echo/echo.c   Mon Nov 24 22:12:14 2003 +0000
+++ b/bin/echo/echo.c   Mon Nov 24 22:38:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: echo.c,v 1.12 2003/09/14 19:20:20 jschauma Exp $   */
+/* $NetBSD: echo.c,v 1.13 2003/11/24 22:38:46 jschauma Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)echo.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: echo.c,v 1.12 2003/09/14 19:20:20 jschauma Exp $");
+__RCSID("$NetBSD: echo.c,v 1.13 2003/11/24 22:38:46 jschauma Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,8 +53,6 @@
 #include <unistd.h>
 #include <vis.h>
 
-int stdout_ok;
-
 int main(int, char *[]);
 
 /* ARGSUSED */
@@ -63,7 +61,6 @@
 {
        int nflag;
 
-       stdout_ok = isatty(STDOUT_FILENO);
        /* This utility may NOT do getopt(3) option parsing. */
        if (*++argv && !strcmp(*argv, "-n")) {
                ++argv;



Home | Main Index | Thread Index | Old Index