]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Use STDIN_FILENO instead of less portable fileno (stdin).
authorJim Meyering <jim@meyering.net>
Thu, 30 May 1996 00:59:50 +0000 (00:59 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 May 1996 00:59:50 +0000 (00:59 +0000)
src/sort.c

index 224e7d34b4ff8f93e0fa82bea145d05f5ec8a75b..9130190538872833f9b963eba9dfa7ee13ac0302 100644 (file)
@@ -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 ();