s/fileno\(stdin\)/STDIN_FILENO/g

s/fileno\(stdout\)/STDOUT_FILENO/g
This commit is contained in:
Eric Andersen
2004-03-27 10:02:48 +00:00
parent edd580a088
commit 70060d25d2
21 changed files with 35 additions and 35 deletions

View File

@@ -55,7 +55,7 @@ static uint8_t *hash_file(const char *filename, uint8_t hash_algo)
int src_fd;
if (strcmp(filename, "-") == 0) {
src_fd = fileno(stdin);
src_fd = STDIN_FILENO;
} else {
src_fd = open(filename, O_RDONLY);
}