diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-05-29 17:08:09 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-05-29 17:08:09 +0000 |
commit | 6cad2ed17474f5c27234933f24560f3824ebf531 (patch) | |
tree | bf2c8b312af90a31e1c632f8fde7006a03651ee2 /usr.bin/tty | |
parent | 6b58ca3e0c8cf67734494f287b8809eb9b54857e (diff) | |
download | src-test-6cad2ed17474f5c27234933f24560f3824ebf531.tar.gz src-test-6cad2ed17474f5c27234933f24560f3824ebf531.zip |
ANSI, __FBSDID()
Notes
Notes:
svn path=/head/; revision=97482
Diffstat (limited to 'usr.bin/tty')
-rw-r--r-- | usr.bin/tty/tty.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c index 2f5af5d48bad9..bcb34ff42abf1 100644 --- a/usr.bin/tty/tty.c +++ b/usr.bin/tty/tty.c @@ -41,10 +41,11 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)tty.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -52,9 +53,7 @@ static const char rcsid[] = static void usage(void); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { int ch, sflag; char *t; @@ -77,7 +76,7 @@ main(argc, argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: tty [-s]\n"); exit(2); |