summaryrefslogtreecommitdiffstats
path: root/usr.bin/tee/tee.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-17 11:16:49 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-17 11:16:49 +0000
commitcf82d7691956538707a9364aa5f86f5a659201c9 (patch)
treee1b0c21119c9ec86c92b22e30ba8872a7ea57e63 /usr.bin/tee/tee.c
parent0f2466f1e0ab7646a54046509ccfd6b76ea2d716 (diff)
downloadFreeBSD-src-cf82d7691956538707a9364aa5f86f5a659201c9.zip
FreeBSD-src-cf82d7691956538707a9364aa5f86f5a659201c9.tar.gz
Revert part of the previous revision. Changing exit() to return() in main()
is wrong, even though our C compiler doesn't understand that exit() eats control of the program, and as such can sometimes complain that main() reaches the bottom of its body without an explicit return(). Aside from that, the functional usefulness of changing it is effectively nil, so back it out. Submitted by: mike
Diffstat (limited to 'usr.bin/tee/tee.c')
-rw-r--r--usr.bin/tee/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c
index e77ec6d..d87b894 100644
--- a/usr.bin/tee/tee.c
+++ b/usr.bin/tee/tee.c
@@ -121,7 +121,7 @@ main(argc, argv)
}
if (rval < 0)
err(1, "read");
- return (exitval);
+ exit(exitval);
}
static void
OpenPOWER on IntegriCloud