Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tip add missing quote, remove some braces.



details:   https://anonhg.NetBSD.org/src/rev/7b429f0b75aa
branches:  trunk
changeset: 338925:7b429f0b75aa
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 17 01:38:02 2015 +0000

description:
add missing quote, remove some braces.

diffstat:

 usr.bin/tip/tip.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r 212f892f9de7 -r 7b429f0b75aa usr.bin/tip/tip.c
--- a/usr.bin/tip/tip.c Wed Jun 17 01:05:41 2015 +0000
+++ b/usr.bin/tip/tip.c Wed Jun 17 01:38:02 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tip.c,v 1.57 2015/06/16 22:54:11 christos Exp $        */
+/*     $NetBSD: tip.c,v 1.58 2015/06/17 01:38:02 christos Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)tip.c      8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: tip.c,v 1.57 2015/06/16 22:54:11 christos Exp $");
+__RCSID("$NetBSD: tip.c,v 1.58 2015/06/17 01:38:02 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -87,12 +87,11 @@
                goto cucommon;
        }
 
-       if (argc > 4) {
+       if (argc > 4)
                tipusage();
-       }
-       if (!isatty(0)) {
-               errx(EXIT_FAILURE, must be interactive");
-       }
+
+       if (!isatty(0))
+               errx(EXIT_FAILURE, "must be interactive");
 
        cmdlineBR = 0;
        while((c = getopt(argc, argv, "v0123456789")) != -1) {



Home | Main Index | Thread Index | Old Index