Module Name: src Committed By: wiz Date: Wed Jun 20 10:09:43 UTC 2012
Modified Files: src/bin/stty: stty.c Log Message: - remove trailing white space; - sync `usage' with man page. >From patch by Bug Hunting. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/bin/stty/stty.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/stty/stty.c diff -u src/bin/stty/stty.c:1.21 src/bin/stty/stty.c:1.22 --- src/bin/stty/stty.c:1.21 Sun Jul 20 00:52:40 2008 +++ src/bin/stty/stty.c Wed Jun 20 10:09:43 2012 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19 #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 @@ __RCSID("$NetBSD: stty.c,v 1.21 2008/07/ 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 @@ args: argc -= optind; gprint(&i.t); break; } - + for (i.set = i.wset = 0; *argv; ++argv) { if (ksearch(&argv, &i)) continue; @@ -162,7 +162,7 @@ void 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 */ }