aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tee
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-05-17 02:28:46 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-05-17 02:28:46 +0000
commit307a7436ec468f504b825de01e11d4698bd07d52 (patch)
tree6ca249fb7df387586dfd8d3255185b6d1be5cca3 /usr.bin/tee
parentc2cba7c501f982b05601698b0d1f24c4b18d48fa (diff)
downloadsrc-307a7436ec468f504b825de01e11d4698bd07d52.tar.gz
src-307a7436ec468f504b825de01e11d4698bd07d52.zip
Notes
Diffstat (limited to 'usr.bin/tee')
-rw-r--r--usr.bin/tee/tee.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c
index 30f919fa06d4..e77ec6d19033 100644
--- a/usr.bin/tee/tee.c
+++ b/usr.bin/tee/tee.c
@@ -93,7 +93,7 @@ main(argc, argv)
argv += optind;
argc -= optind;
- if ((buf = malloc((u_int)BSIZE)) == NULL)
+ if ((buf = malloc(BSIZE)) == NULL)
errx(1, "malloc");
add(STDOUT_FILENO, "stdout");
@@ -121,7 +121,7 @@ main(argc, argv)
}
if (rval < 0)
err(1, "read");
- exit(exitval);
+ return (exitval);
}
static void
@@ -138,7 +138,7 @@ add(fd, name)
{
LIST *p;
- if ((p = malloc((u_int)sizeof(LIST))) == NULL)
+ if ((p = malloc(sizeof(LIST))) == NULL)
errx(1, "malloc");
p->fd = fd;
p->name = name;