summaryrefslogtreecommitdiffstats
path: root/usr.bin/script
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-12 23:23:52 +0000
committermarkm <markm@FreeBSD.org>2001-12-12 23:23:52 +0000
commit5388af43e4c4b79bb76d8cc6bccfa661120b3808 (patch)
tree77363b274062b85be071e20720c9b82d5c9dec9a /usr.bin/script
parentfaadf546046bb0346270bd4eef4264582c48f595 (diff)
downloadFreeBSD-src-5388af43e4c4b79bb76d8cc6bccfa661120b3808.zip
FreeBSD-src-5388af43e4c4b79bb76d8cc6bccfa661120b3808.tar.gz
Minor style stuff, use __FBSDID(), remove to-be-default WARNS=2.
Diffstat (limited to 'usr.bin/script')
-rw-r--r--usr.bin/script/Makefile1
-rw-r--r--usr.bin/script/script.c16
2 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/script/Makefile b/usr.bin/script/Makefile
index ac3a59c..50ba12e 100644
--- a/usr.bin/script/Makefile
+++ b/usr.bin/script/Makefile
@@ -2,7 +2,6 @@
# $FreeBSD$
PROG= script
-WARNS?= 2
LDADD= -lutil
DPADD= ${LIBUTIL}
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 115c1f9..d6abb90 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -31,19 +31,19 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1980, 1992, 1993\n\
The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
+#endif
#ifndef lint
-#if 0
-static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
+static const char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
#include <sys/types.h>
#include <sys/wait.h>
@@ -66,7 +66,7 @@ static const char rcsid[] =
FILE *fscript;
int master, slave;
int child;
-const char *fname;
+const char *fname;
int qflg;
struct termios tt;
@@ -83,7 +83,7 @@ main(argc, argv)
int argc;
char *argv[];
{
- register int cc;
+ int cc;
struct termios rtt, stt;
struct winsize win;
int aflg, kflg, ch, n;
OpenPOWER on IntegriCloud