aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss/setup.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2003-09-07 15:50:43 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2003-09-07 15:50:43 +0000
commitb956c13cfe56eae3077dbb877f4ba0a850473cc4 (patch)
tree9601ea58898cfaa89503da5cf64e071e11d38726 /usr.bin/truss/setup.c
parentfed771de60a003d3cf70e77bb7ff14971dd7ed78 (diff)
downloadsrc-b956c13cfe56eae3077dbb877f4ba0a850473cc4.tar.gz
src-b956c13cfe56eae3077dbb877f4ba0a850473cc4.zip
Notes
Diffstat (limited to 'usr.bin/truss/setup.c')
-rw-r--r--usr.bin/truss/setup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c
index aedd957a0593..2d252a75a093 100644
--- a/usr.bin/truss/setup.c
+++ b/usr.bin/truss/setup.c
@@ -29,10 +29,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/*
* Various setup functions for truss. Not the cleanest-written code,
@@ -45,7 +43,6 @@ static const char rcsid[] =
#include <sys/wait.h>
#include <err.h>
-#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
@@ -115,7 +112,7 @@ setup_and_wait(char *command[]) {
if (ioctl(fd, PIOCWAIT, &pfs) == -1)
err(6, "PIOCWAIT");
if (pfs.why == S_EXIT) {
- fprintf(stderr, "process exited before exec'ing\n");
+ warnx("process exited before exec'ing");
ioctl(fd, PIOCCONT, 0);
wait(0);
exit(7);