s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
This commit is contained in:
@@ -576,7 +576,7 @@ int tftp_main(int argc, char **argv)
|
||||
result = tftp(cmd, host, remotefile, fd, port, blocksize);
|
||||
|
||||
#ifdef CONFIG_FEATURE_CLEAN_UP
|
||||
if (!(fd == fileno(stdout) || fd == fileno(stdin))) {
|
||||
if (!(fd == STDOUT_FILENO || fd == STDIN_FILENO)) {
|
||||
close(fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user