summaryrefslogtreecommitdiff
path: root/sbin/atactl
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-02-20 21:47:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-02-20 21:47:28 +0000
commit26b24cbe6f448ee4963338e3c2992d0622585880 (patch)
tree6cfa88125fb2c6d28c43a8890b7903df19add032 /sbin/atactl
parentbcbf9fadd55567efe030f79b158f7967f71fcef1 (diff)
Use STDOUT_FILENO; David at phobia dot ms
Diffstat (limited to 'sbin/atactl')
-rw-r--r--sbin/atactl/atactl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c
index e58993d7d72..dbf4fce6890 100644
--- a/sbin/atactl/atactl.c
+++ b/sbin/atactl/atactl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atactl.c,v 1.26 2003/01/14 23:53:25 avsm Exp $ */
+/* $OpenBSD: atactl.c,v 1.27 2003/02/20 21:47:27 millert Exp $ */
/* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */
/*-
@@ -484,7 +484,7 @@ device_dump(int argc, char *argv[])
if ((error = ioctl(fd, ATAIOGETTRACE, &agt)) == -1)
err(1, "ATAIOGETTRACE failed");
- write(1, agt.buf, agt.bytes_copied);
+ write(STDOUT_FILENO, agt.buf, agt.bytes_copied);
fprintf(stderr, "%d bytes written\n", agt.bytes_copied);
return;