From: Jim Meyering Date: Thu, 30 May 1996 00:59:50 +0000 (+0000) Subject: (main): Use STDIN_FILENO instead of less portable fileno (stdin). X-Git-Tag: TEXTUTILS-1_15~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bd31fac90ed31602b59c4d5f5e0aa0f7048b066;p=thirdparty%2Fcoreutils.git (main): Use STDIN_FILENO instead of less portable fileno (stdin). --- diff --git a/src/sort.c b/src/sort.c index 224e7d34b4..9130190538 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 ();