Source-Changes-HG archive

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

[src/trunk]: src/bin/stty - remove trailing white space;



details:   https://anonhg.NetBSD.org/src/rev/37090c584482
branches:  trunk
changeset: 779814:37090c584482
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Jun 20 10:09:43 2012 +0000

description:
- remove trailing white space;
- sync `usage' with man page.

>From patch by Bug Hunting.

diffstat:

 bin/stty/stty.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r fe2cda51d3a4 -r 37090c584482 bin/stty/stty.c
--- a/bin/stty/stty.c   Wed Jun 20 10:09:21 2012 +0000
+++ b/bin/stty/stty.c   Wed Jun 20 10:09:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stty.c,v 1.21 2008/07/20 00:52:40 lukem Exp $ */
+/* $NetBSD: stty.c,v 1.22 2012/06/20 10:09:43 wiz Exp $ */
 
 /*-
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)stty.c     8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: stty.c,v 1.21 2008/07/20 00:52:40 lukem Exp $");
+__RCSID("$NetBSD: stty.c,v 1.22 2012/06/20 10:09:43 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -61,7 +61,7 @@
 int main(int, char *[]);
 
 int
-main(int argc, char *argv[]) 
+main(int argc, char *argv[])
 {
        struct info i;
        enum FMT fmt;
@@ -119,7 +119,7 @@
                gprint(&i.t);
                break;
        }
-       
+
        for (i.set = i.wset = 0; *argv; ++argv) {
                if (ksearch(&argv, &i))
                        continue;
@@ -162,7 +162,7 @@
 usage(void)
 {
 
-       (void)fprintf(stderr, "usage: %s [-a|-e|-g] [-f file] [options]\n", getprogname());
+       (void)fprintf(stderr, "usage: %s [-a|-e|-g] [-f file] [operand ...]\n", getprogname());
        exit(1);
        /* NOTREACHED */
 }



Home | Main Index | Thread Index | Old Index