mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(main): Use STDIN_FILENO, not literal `0'.
This commit is contained in:
1 parent
3ca2ab6ef4
commit
ce5034feeb
1 file changed
+1
-1
+1
-1
@@ -502,7 +502,7 @@ main (int argc, char **argv)
|
||||
|
||||
/* Open the input file. */
|
||||
if (STREQ (infile, "-"))
|
||||
input_desc = 0;
|
||||
input_desc = STDIN_FILENO;
|
||||
else
|
||||
{
|
||||
input_desc = open (infile, O_RDONLY);
|
||||
|
||||
Reference in new issue
Block a user