diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-07-26 17:15:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-07-26 17:15:47 +0000 |
commit | ab34ecd4bf73a94563b7137eb67e540192eedf1a (patch) | |
tree | e56733620d88fce3e0d188598ee285a0e2d8b5b5 /bin/cp/cp.c | |
parent | 2e65fdd1f9d9feef62e859371980b09572f7ff93 (diff) |
STDIN_FILENO is better than fileno(stdin); zinovik@cs.karelia.ru
Diffstat (limited to 'bin/cp/cp.c')
-rw-r--r-- | bin/cp/cp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 144c7a047e2..971132e9df2 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.32 2006/04/25 15:41:07 deraadt Exp $ */ +/* $OpenBSD: cp.c,v 1.33 2007/07/26 17:15:46 deraadt Exp $ */ /* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: cp.c,v 1.32 2006/04/25 15:41:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.33 2007/07/26 17:15:46 deraadt Exp $"; #endif #endif /* not lint */ @@ -127,7 +127,7 @@ main(int argc, char *argv[]) iflag = 0; break; case 'i': - iflag = isatty(fileno(stdin)); + iflag = isatty(STDIN_FILENO); fflag = 0; break; case 'p': |