diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-02-20 21:47:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-02-20 21:47:28 +0000 |
commit | 26b24cbe6f448ee4963338e3c2992d0622585880 (patch) | |
tree | 6cfa88125fb2c6d28c43a8890b7903df19add032 /sbin/scsi | |
parent | bcbf9fadd55567efe030f79b158f7967f71fcef1 (diff) |
Use STDOUT_FILENO; David at phobia dot ms
Diffstat (limited to 'sbin/scsi')
-rw-r--r-- | sbin/scsi/scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |