Use STD*_FILENO constants (#1055)

These are defined in platform.h, but not consistently used

Co-authored-by: Eldred Habert <eldredhabert0@gmail.com>
This commit is contained in:
Rangi
2022-09-25 04:02:53 -04:00
committed by GitHub
parent b8385a50e3
commit 2827374505
3 changed files with 9 additions and 4 deletions

View File

@@ -492,7 +492,7 @@ void out_WriteObject(void)
if (strcmp(objectName, "-") != 0)
f = fopen(objectName, "wb");
else
f = fdopen(1, "wb");
f = fdopen(STDOUT_FILENO, "wb");
if (!f)
err("Couldn't write file '%s'", objectName);