diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-29 17:08:09 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-29 17:08:09 +0000 |
commit | 41ef234489de50696605f5afe671b36d76798a5a (patch) | |
tree | bf2c8b312af90a31e1c632f8fde7006a03651ee2 /usr.bin/tty | |
parent | 7fb4b89af71b8dde4a68a0a6738210f9a4c08d9c (diff) | |
download | FreeBSD-src-41ef234489de50696605f5afe671b36d76798a5a.zip FreeBSD-src-41ef234489de50696605f5afe671b36d76798a5a.tar.gz |
ANSI, __FBSDID()
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 2f5af5d..bcb34ff 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); |