summaryrefslogtreecommitdiff
path: root/usr.bin/tee
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
commitf4ac32def255b5968bdd8150057b9c0d14595689 (patch)
treefb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/tee
parentd946bf789255a84ecbbbdfd07bffb48da063204f (diff)
downloadsrc-test-f4ac32def255b5968bdd8150057b9c0d14595689.tar.gz
src-test-f4ac32def255b5968bdd8150057b9c0d14595689.zip
ANSIify function definitions.
Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
Notes
Notes: svn path=/head/; revision=102944
Diffstat (limited to 'usr.bin/tee')
-rw-r--r--usr.bin/tee/tee.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c
index 5ac05db7ba8d6..123a2de69ab55 100644
--- a/usr.bin/tee/tee.c
+++ b/usr.bin/tee/tee.c
@@ -66,13 +66,11 @@ void add(int, const char *);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
- register LIST *p;
- register int n, fd, rval, wval;
- register char *bp;
+ LIST *p;
+ int n, fd, rval, wval;
+ char *bp;
int append, ch, exitval;
char *buf;
#define BSIZE (8 * 1024)
@@ -125,16 +123,14 @@ main(argc, argv)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: tee [-ai] [file ...]\n");
exit(1);
}
void
-add(fd, name)
- int fd;
- const char *name;
+add(int fd, const char *name)
{
LIST *p;