summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-05-30 00:59:50 +0000
committerJim Meyering <jim@meyering.net>1996-05-30 00:59:50 +0000
commit3bd31fac90ed31602b59c4d5f5e0aa0f7048b066 (patch)
treef3b396c413aed7d55a5e7d6dcd851eb5b32e9924
parent31f9f9f24c93149418aea3bff6a33df5b56719fa (diff)
downloadcoreutils-3bd31fac90ed31602b59c4d5f5e0aa0f7048b066.tar.xz
(main): Use STDIN_FILENO instead of less portable fileno (stdin).
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 224e7d34b..913019053 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2054,7 +2054,7 @@ but lacks following character offset"));
struct stat instat;
if ((strcmp (files[i], "-")
? stat (files[i], &instat)
- : fstat (fileno (stdin), &instat)) != 0)
+ : fstat (STDIN_FILENO, &instat)) != 0)
{
error (0, errno, "%s", files[i]);
cleanup ();