summaryrefslogtreecommitdiff
path: root/sbin
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
parentbcbf9fadd55567efe030f79b158f7967f71fcef1 (diff)
Use STDOUT_FILENO; David at phobia dot ms
Diffstat (limited to 'sbin')
-rw-r--r--sbin/atactl/atactl.c4
-rw-r--r--sbin/scsi/scsi.c4
2 files changed, 4 insertions, 4 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;
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index 96b693faf3f..f46cccccf36 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.8 2001/07/07 18:26:21 deraadt Exp $ */
+/* $OpenBSD: scsi.c,v 1.9 2003/02/20 21:47:27 millert Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -391,7 +391,7 @@ do_cmd(int fd, char *fmt, int argc, char **argv)
if (strcmp(data_fmt, "-") == 0) /* stdout */
{
bp = (char *)scsireq->databuf;
- while (count > 0 && (amount = write(1, bp, count)) > 0)
+ while (count > 0 && (amount = write(STDOUT_FILENO, bp, count)) > 0)
{
count -= amount;
bp += amount;